diff options
author | jilles <jilles@FreeBSD.org> | 2011-01-08 23:00:38 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2011-01-08 23:00:38 +0000 |
commit | 25806c21fcd1d1d301dfc2a264917347f39eada4 (patch) | |
tree | e54c78af8f3501df5b307b4d34a80b6f8fa3b117 | |
parent | a3f4c0274db19c40a1aa1e7cfa5a914ba189f866 (diff) | |
download | FreeBSD-src-25806c21fcd1d1d301dfc2a264917347f39eada4.zip FreeBSD-src-25806c21fcd1d1d301dfc2a264917347f39eada4.tar.gz |
sh: Add simple test for 'exit' without parameters.
-rw-r--r-- | tools/regression/bin/sh/builtins/exit2.8 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/builtins/exit2.8 b/tools/regression/bin/sh/builtins/exit2.8 new file mode 100644 index 0000000..124c32e --- /dev/null +++ b/tools/regression/bin/sh/builtins/exit2.8 @@ -0,0 +1,7 @@ +# $FreeBSD$ + +# exit without arguments is the same as exit $? outside a trap. + +trap 'true; true' 0 +(exit 8) +exit |