1
2T=`mktemp -d ${TMPDIR:-/tmp}/sh-test.XXXXXXXX`
3trap 'rm -rf $T' 0
4cd $T || exit 3
5mkfifo fifo1
6{ trap - INT; : >fifo1; sleep 5 & wait; exit 4; } &
7: <fifo1
8kill -INT "$!"
9wait "$!"
10r=$?
11[ "$r" -gt 128 ] && [ "$(kill -l "$r")" = INT ]
12