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