]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/parameters/exitstatus1.0
shell_cmds-207.100.1.tar.gz
[apple/shell_cmds.git] / sh / tests / parameters / exitstatus1.0
1 # $FreeBSD: head/bin/sh/tests/parameters/exitstatus1.0 185232 2008-11-23 20:27:03Z stefanf $
2 f() {
3 [ $? = $1 ] || exit 1
4 }
5
6 true
7 f 0
8 false
9 f 1