In the last episode (Feb 17), Vincent Lefevre said: > zsh (all versions?) does not interrupt a "wait" when it receives a > signal for which a trap has been set. > > For instance, consider the following script: > > #!/usr/bin/env zsh > echo "PID = $$" > sleep 60 & > trap 'echo term; exit 0' TERM > wait Here's the test I've been using. All shells I've tested except zsh and FreeBSD's ash interrupt the wait, but only bash returns the correct value from wait #1. I tested Solaris 10 /bin/sh and /bin/ksh, FreeBSD 5's /bin/sh, zsh-4.2.6 and ksh93-20060124 ports, and Debian's bash-2.05b-14 and ash-0.5.2-5. -- Dan Nelson dnelson@allantgroup.com