xref: /freebsd/bin/sh/tests/parameters/exitstatus1.0 (revision 13ec1e3155c7e9bf037b12af186351b7fa9b9450)
1# $FreeBSD$
2f() {
3	[ $? = $1 ] || exit 1
4}
5
6true
7f 0
8false
9f 1
10