diff options
Diffstat (limited to '')
-rw-r--r-- | bin/cash/tests/builtins/exit2.8 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/cash/tests/builtins/exit2.8 b/bin/cash/tests/builtins/exit2.8 new file mode 100644 index 00000000..ee747ccd --- /dev/null +++ b/bin/cash/tests/builtins/exit2.8 @@ -0,0 +1,7 @@ +# $FreeBSD: releng/12.0/bin/sh/tests/builtins/exit2.8 217172 2011-01-08 23:00:38Z jilles $ + +# exit without arguments is the same as exit $? outside a trap. + +trap 'true; true' 0 +(exit 8) +exit |