summaryrefslogtreecommitdiffstats
path: root/shell_cmds/sh/tests/builtins/exit3.0
diff options
context:
space:
mode:
Diffstat (limited to 'shell_cmds/sh/tests/builtins/exit3.0')
-rw-r--r--shell_cmds/sh/tests/builtins/exit3.05
1 files changed, 5 insertions, 0 deletions
diff --git a/shell_cmds/sh/tests/builtins/exit3.0 b/shell_cmds/sh/tests/builtins/exit3.0
new file mode 100644
index 0000000..4e0c96c
--- /dev/null
+++ b/shell_cmds/sh/tests/builtins/exit3.0
@@ -0,0 +1,5 @@
+# $FreeBSD: head/bin/sh/tests/builtins/exit3.0 217175 2011-01-08 23:08:13Z jilles $
+
+# exit without arguments differs from exit $? in an EXIT trap.
+
+trap 'false; exit' 0