dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tycho Kirchner <tychokirchner@mail.de>
To: dash@vger.kernel.org
Subject: stdin should be consumed line by line
Date: Fri, 22 Oct 2021 13:11:43 +0200	[thread overview]
Message-ID: <6640a8ee-eda0-1e35-df1a-c8b303440ca1@mail.de> (raw)

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

                 reply	other threads:[~2021-10-22 11:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6640a8ee-eda0-1e35-df1a-c8b303440ca1@mail.de \
    --to=tychokirchner@mail.de \
    --cc=dash@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).