diff options
Diffstat (limited to '')
-rw-r--r-- | bin/1sh/tests/builtins/trap3.0 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/1sh/tests/builtins/trap3.0 b/bin/1sh/tests/builtins/trap3.0 new file mode 100644 index 00000000..007cb0e6 --- /dev/null +++ b/bin/1sh/tests/builtins/trap3.0 @@ -0,0 +1,11 @@ +# $FreeBSD: releng/12.1/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 |