dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* stdin should be consumed line by line
@ 2021-10-22 11:11 Tycho Kirchner
  0 siblings, 0 replies; only message in thread
From: Tycho Kirchner @ 2021-10-22 11:11 UTC (permalink / raw)
  To: dash

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-22 11:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-22 11:11 stdin should be consumed line by line Tycho Kirchner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).