perf@efd.lth.se (06/13/89)
Bash 0.99, sun 3/50, SunOS 4.0.1 I found this bug in 0.95 (and reported it) but it't still there in 0.99. Piping output from a loop never writes an EOF and the command that reads from the pipe hangs. This hangs: bash$ for i in 1 2 3 4 5; do bash> echo $i bash> done | cat But this works: bash$ for i in 1 2 3 4 5; do bash> echo $i bash> done | cat /dev/null since /dev/null supplies the EOF character. /Per ____________________________________________________________________________ | Per Foreby -- system manager at School | Email: perf@efd.lth.se | | of Electrical Engineering, Computer | Snail: Tekniska Hogskolan i Lund, | | Science and Engineering Physics, | Box 118, S-221 00 LUND, Sweden | | Lund Institute of Technology, Sweden | Phone: int + 46 46-10 75 98 | |________________________________________|___________________________________|