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