On 1/13/16 4:08 AM, Andreas Schwab wrote: > Martin Kealey <mar...@kurahaupo.gen.nz> writes: > >> What do other shells do? Ksh? Dash? Zsh? > > $ ksh -c 'printf "foo1\nfoo2\n" | { (read x; echo 1: $x) & (read x; echo 2: > $x) & }' > 1: foo1 > 2: foo2
I changed bash to behave like this, which I think is the most reasonable. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/