Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Unexpected stdin-behavior



On Thu, Oct 21, 2021 at 5:40 AM Tycho Kirchner <tychokirchner@xxxxxxx> wrote:
>
> While bash -i and zsh -s show the expected behavior (stdin is "consumed"
> command by command) zsh -s -i seems to "consume" the whole stdin
> beforehand (see below). I there a rationale behind this?

Zsh is using the stdio library to read its input.  (This has actually
changed in the current development version but still buffers in an
equivalent way.)




Messages sorted by: Reverse Date, Date, Thread, Author