1# "return" in trap should not use last command's exitcode,
2# but exitcode on entering the trap.
3trap "echo TERM;return" term
4f() {
5	(sleep 1; kill $$) &
6	until (exit 42) do (exit 42); done
7}
8f
9echo 42:$?
10