Thread View: gnu.bash.bug
1 messages
1 total messages
Started by perf
Mon, 12 Jun 1989 22:29
piping from a loop hangs
Author: perf
Date: Mon, 12 Jun 1989 22:29
Date: Mon, 12 Jun 1989 22:29
28 lines
1281 bytes
1281 bytes
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 | |________________________________________|___________________________________|
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads