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