summary refs log tree commit diff
path: root/bin/cash/tests/parameters/exitstatus1.0
blob: 5e9e0823e35ccd8b063e63670085be3ac5a691ae (plain) (blame)
1
2
3
4
5
6
7
8
9
# $FreeBSD: releng/12.0/bin/sh/tests/parameters/exitstatus1.0 185232 2008-11-23 20:27:03Z stefanf $
f() {
	[ $? = $1 ] || exit 1
}

true
f 0
false
f 1