From: Bart Schaefer <schaefer@brasslantern.com>
To: Lyude Paul <lyude@redhat.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Regression with stdin handling in non-interactive mode between 5.8 and 5.8.1
Date: Wed, 2 Mar 2022 14:59:13 -0800 [thread overview]
Message-ID: <CAH+w=7YTn0o6XO8c=wrriV5zqqwE9UUJuyjvh=AxjoVURChS=A@mail.gmail.com> (raw)
In-Reply-To: <5e9cdfc2b807bfc4aa4695938b70156742c2e120.camel@redhat.com>
On Wed, Mar 2, 2022 at 2:39 PM Lyude Paul <lyude@redhat.com> wrote:
>
>
> printf '%s\n' 'echo Shell is $$' sh 'echo Shell is $$' | zsh
>
> Running on zsh 5.8.1 however, returns:
>
> Shell is 86396
> Shell is 86396
This has to be workers/49290, the replacement I/O buffering is not
doing line-buffered input for non-interactive shells. An strace shows
read(0, "echo Shell is $$\nsh\necho Shell i"..., 8192) = 37
next prev parent reply other threads:[~2022-03-02 22:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-02 22:38 Lyude Paul
2022-03-02 22:59 ` Bart Schaefer [this message]
2022-03-03 9:39 ` Peter Stephenson
2022-03-03 11:52 ` Peter Stephenson
2022-03-03 22:59 ` Lyude Paul
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='CAH+w=7YTn0o6XO8c=wrriV5zqqwE9UUJuyjvh=AxjoVURChS=A@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=lyude@redhat.com \
--cc=zsh-workers@zsh.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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).