summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2011-01-08 23:00:38 +0000
committerjilles <jilles@FreeBSD.org>2011-01-08 23:00:38 +0000
commit25806c21fcd1d1d301dfc2a264917347f39eada4 (patch)
treee54c78af8f3501df5b307b4d34a80b6f8fa3b117 /tools
parenta3f4c0274db19c40a1aa1e7cfa5a914ba189f866 (diff)
downloadFreeBSD-src-25806c21fcd1d1d301dfc2a264917347f39eada4.zip
FreeBSD-src-25806c21fcd1d1d301dfc2a264917347f39eada4.tar.gz
sh: Add simple test for 'exit' without parameters.
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/bin/sh/builtins/exit2.87
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
OpenPOWER on IntegriCloud