zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Tycho Kirchner <tychokirchner@mail.de>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Unexpected stdin-behavior
Date: Thu, 21 Oct 2021 08:55:05 -0700	[thread overview]
Message-ID: <CAH+w=7Ype8LCU4nywbNwjbTQ4G6sfa3yihNfZUtsnLBi7CJ0kA@mail.gmail.com> (raw)
In-Reply-To: <2abd99f9-c1c0-1385-f8b4-be9b8f14c4d9@mail.de>

On Thu, Oct 21, 2021 at 5:40 AM Tycho Kirchner <tychokirchner@mail.de> 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.)


  reply	other threads:[~2021-10-21 15:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-21 12:40 Tycho Kirchner
2021-10-21 15:55 ` Bart Schaefer [this message]
     [not found]   ` <13d30855-d91c-7def-6834-f0ec24cfd598@mail.de>
2021-10-21 19:14     ` Bart Schaefer
2021-10-22 10:28       ` Tycho Kirchner
2021-10-22 10:58       ` Peter Stephenson
2021-10-22 14:24       ` Tycho Kirchner

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=7Ype8LCU4nywbNwjbTQ4G6sfa3yihNfZUtsnLBi7CJ0kA@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=tychokirchner@mail.de \
    --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).