1 2 3 4
# make sure we do not corrupt $? across traps trap "echo YEAH; false" USR1 kill -USR1 $$ echo $?