Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Regression with stdin handling in non-interactive mode between 5.8 and 5.8.1
On Wed, Mar 2, 2022 at 2:39 PM Lyude Paul <lyude@xxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author