Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

question about wait in interactive mode



I have a scriptlet that behaves differently then I would expect.  This only
happens on the command line.  Running a script script file with those same
lines works as expected and the code returns after printing the 3 lines.

In bash it works as I thought it would, but zsh gets stuck in what looks like a
wait deadlock.

Does anybody know what is going on?  This is 4.2.4

cat <<END |
a
b
c
END
(
for f in `cat`
do
/bin/echo $f &
done
wait
)

Thanks.



Messages sorted by: Reverse Date, Date, Thread, Author