sh: Add simple test for 'exit' without parameters.
This commit is contained in:
parent
ce8a13bdb9
commit
02edd492b4
7
tools/regression/bin/sh/builtins/exit2.8
Normal file
7
tools/regression/bin/sh/builtins/exit2.8
Normal file
@ -0,0 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
# exit without arguments is the same as exit $? outside a trap.
|
||||
|
||||
trap 'true; true' 0
|
||||
(exit 8)
|
||||
exit
|
Loading…
Reference in New Issue
Block a user