sh: Test that exit $? replaces the original exit status in an EXIT trap.
This commit is contained in:
parent
850460c0f1
commit
be25acf4a5
6
tools/regression/bin/sh/builtins/exit1.0
Normal file
6
tools/regression/bin/sh/builtins/exit1.0
Normal file
@ -0,0 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
# exit with an argument should overwrite the exit status in an EXIT trap.
|
||||
|
||||
trap 'true; exit $?' 0
|
||||
false
|
Loading…
Reference in New Issue
Block a user