1 2set -T 3trapped='' 4trap "trapped=x$trapped" TERM 5[ "x$($SH -c "kill $$")y" = xy ] && [ "$trapped" = x ] 6