aboutsummaryrefslogtreecommitdiffstats
path: root/shell_cmds/sh/tests/builtins/trap3.0
diff options
context:
space:
mode:
Diffstat (limited to 'shell_cmds/sh/tests/builtins/trap3.0')
-rw-r--r--shell_cmds/sh/tests/builtins/trap3.011
1 files changed, 11 insertions, 0 deletions
diff --git a/shell_cmds/sh/tests/builtins/trap3.0 b/shell_cmds/sh/tests/builtins/trap3.0
new file mode 100644
index 0000000..d442f8b
--- /dev/null
+++ b/shell_cmds/sh/tests/builtins/trap3.0
@@ -0,0 +1,11 @@
+# $FreeBSD: head/bin/sh/tests/builtins/trap3.0 218889 2011-02-20 14:18:58Z jilles $
+
+{
+ trap '' garbage && exit 3
+ trap - garbage && exit 3
+ trap true garbage && exit 3
+ trap '' 99999 && exit 3
+ trap - 99999 && exit 3
+ trap true 99999 && exit 3
+} 2>/dev/null
+exit 0