sh: Test that exit $? replaces the original exit status in an EXIT trap.

This commit is contained in:
Jilles Tjoelker 2011-01-01 15:25:15 +00:00
parent 850460c0f1
commit be25acf4a5

View File

@ -0,0 +1,6 @@
# $FreeBSD$
# exit with an argument should overwrite the exit status in an EXIT trap.
trap 'true; exit $?' 0
false