Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: substituted command won't inherit stdin in pipeline
- X-seq: zsh-users 24429
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Oğuz <oguzismailuysal@xxxxxxxxx>
- Subject: Re: substituted command won't inherit stdin in pipeline
- Date: Thu, 14 Nov 2019 07:57:27 +0000
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=RP8Az2lStUaYePbeiLFLE+95AgJX4ptUG5UgZPT9UZg=; b=ZijcOfJQ3mwxlFTEoAyNDnfqXGsV7AmWs10t5Zgf/Yg5HVrnBNmvsDJ4s8M+zVDvgJ kJeH7HEF8+wxYNyo+dTdtQL9xOMLp+uuRKDYtd+8akX5rDLwAucS0mcmgHpATxQQI6W7 M/X/h5LyuNlvgFZObEJKJz+TkytIQYMS6pCvDokPidagMfp94cRIhfIStQbKIlRZUX6G /MTr0AozJNwLUMwtSqxclhlLZdvWLfRHqh1gbPVyXNHCvmtMy0GMcnt/cAIYx6U27Uxx zE0ZJEoLW4jZs0ifiXH+A4/DEIUEhZY3Jk6fKOHM3jDMBw+tVUcV3a6c2TstkDZRZ6Jw Fhrw==
- In-reply-to: <CAH7i3LrwD4G0CJ3WvdWZsp5u-cSTQoGomSf6HHF1XG8NnA89Vw__34634.6754276723$1573691143$gmane$org@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mail-followup-to: Oğuz <oguzismailuysal@xxxxxxxxx>, zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAH7i3Lo57yAd==m7zF+8mtETqYDDSptmdzxF-2t_pu42fe9ztQ__41421.1000244663$1573638841$gmane$org@mail.gmail.com> <20191113130023.n7lgi2vov44kkjfl@chaz.gmail.com> <CAH7i3LrwD4G0CJ3WvdWZsp5u-cSTQoGomSf6HHF1XG8NnA89Vw__34634.6754276723$1573691143$gmane$org@mail.gmail.com>
2019-11-13 16:30:06 +0300, Oğuz:
[...]
> > Not exactly what happens in that the expansions in the arguments
> > of the commands in the pipeline are performed in the parent,
> > from left to right, not in the processes that run the
> > individualy pipe components (also note that the right-most pipe
> > component is run in the current shell anyway, like in ksh93,
> > unlike in bash).
Which was meant to be (sorry for the gibberish):
> > Not exactly. What happens is that the expansions in the arguments
> > of the commands in the pipeline are performed in the parent,
> > from left to right, not in the processes that run the
> > individualy pipe components (also note that the right-most pipe
> > component is run in the current shell anyway, like in ksh93,
> > unlike in bash).
> Now I'm confused. Is this what standard says, or what zsh does?
It's what zsh does.
IIRC, POSIX leaves it unspecified.
It also leaves unspecified which pipeline component if any may
be run in the current shell process.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author