summary refs log tree commit diff
path: root/bin/cash/tests/builtins/exit3.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cash/tests/builtins/exit3.0')
-rw-r--r--bin/cash/tests/builtins/exit3.05
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/cash/tests/builtins/exit3.0 b/bin/cash/tests/builtins/exit3.0
new file mode 100644
index 00000000..3855919d
--- /dev/null
+++ b/bin/cash/tests/builtins/exit3.0
@@ -0,0 +1,5 @@
+# $FreeBSD: releng/12.0/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