stdin should be consumed line by line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear DASH developers,
I think stdin should be consumed line by line in order to make passing to other commands possible. Please consider the following difference between the stdin "consumption" between bash and dash

$ stdintest(){ printf 'echo one\ndash -c "while read -r row; do echo got row \$row; done" \necho two\n'; }
$ stdintest | dash
one
two
$ stdintest | bash
one
got row echo two
$


I think bash behaves "correct" here.

Thanks and kind regards
Tycho Kirchner



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux