freebsd-dev/tools/regression/bin/sh/parameters/exitstatus1.0
2008-11-23 20:27:03 +00:00

10 lines
63 B
Plaintext

# $FreeBSD$
f() {
[ $? = $1 ] || exit 1
}
true
f 0
false
f 1