diff options
Diffstat (limited to 'shell_cmds/sh/tests/builtins/exit2.8')
| -rw-r--r-- | shell_cmds/sh/tests/builtins/exit2.8 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shell_cmds/sh/tests/builtins/exit2.8 b/shell_cmds/sh/tests/builtins/exit2.8 new file mode 100644 index 0000000..51d38f7 --- /dev/null +++ b/shell_cmds/sh/tests/builtins/exit2.8 @@ -0,0 +1,7 @@ +# $FreeBSD: head/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 |
