diff options
Diffstat (limited to 'bin/sh/tests/builtins/exit2.8')
-rw-r--r-- | bin/sh/tests/builtins/exit2.8 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/sh/tests/builtins/exit2.8 b/bin/sh/tests/builtins/exit2.8 new file mode 100644 index 0000000..124c32e --- /dev/null +++ b/bin/sh/tests/builtins/exit2.8 @@ -0,0 +1,7 @@ +# $FreeBSD$ + +# exit without arguments is the same as exit $? outside a trap. + +trap 'true; true' 0 +(exit 8) +exit |