public inbox for dash@vger.kernel.org
 help / color / mirror / Atom feed
* stdin should be consumed line by line
@ 2021-10-22 11:11 Tycho Kirchner
  2024-06-30  5:11 ` Max Nikulin
  0 siblings, 1 reply; 2+ messages 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] 2+ messages in thread

end of thread, other threads:[~2024-06-30  5:11 UTC | newest]

Thread overview: 2+ messages (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
2024-06-30  5:11 ` Max Nikulin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox