blob: f259774bf94f2d27fb24857486290bb92b06d3e8 [file] [log] [blame]
Denys Vlasenkoc91950f2020-02-19 12:10:41 +01001# "exit" in trap should not use last command's exitcode,
2# but exitcode on entering the trap.
3$THIS_SH -c '
4 trap "false;exit" term
5 kill $$ &
6 (exit 42)
7 wait
8'
9echo 42:$?