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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216871

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