diff options
author | stefanf <stefanf@FreeBSD.org> | 2008-11-23 20:27:03 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2008-11-23 20:27:03 +0000 |
commit | 465185b1927999f43e3e22933fc6ce9d51b525d0 (patch) | |
tree | 1c5fbc5f5bf18b5e986d8e09d0584db1237650c7 | |
parent | fd291bd5c3f1eba1fe1eb9a64380dedaffafb8fe (diff) | |
download | FreeBSD-src-465185b1927999f43e3e22933fc6ce9d51b525d0.zip FreeBSD-src-465185b1927999f43e3e22933fc6ce9d51b525d0.tar.gz |
Add a test for r185231.
-rw-r--r-- | tools/regression/bin/sh/parameters/exitstatus1.0 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/parameters/exitstatus1.0 b/tools/regression/bin/sh/parameters/exitstatus1.0 new file mode 100644 index 0000000..696823d --- /dev/null +++ b/tools/regression/bin/sh/parameters/exitstatus1.0 @@ -0,0 +1,9 @@ +# $FreeBSD$ +f() { + [ $? = $1 ] || exit 1 +} + +true +f 0 +false +f 1 |