mirror of
https://github.com/opnsense/src.git
synced 2026-03-28 13:43:12 -04:00
It should use the original exit status, just like falling off the end of the trap handler. Outside an EXIT trap, 'exit' is still equivalent to 'exit $?'.
5 lines
98 B
Text
5 lines
98 B
Text
# $FreeBSD$
|
|
|
|
# exit without arguments differs from exit $? in an EXIT trap.
|
|
|
|
trap 'false; exit' 0
|