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 24430
- From: Oğuz <oguzismailuysal@xxxxxxxxx>
- To: stephane.chazelas@xxxxxxxxx
- Subject: Re: substituted command won't inherit stdin in pipeline
- Date: Thu, 14 Nov 2019 11:43:49 +0300
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=chxTMUA/j4oQ3k54pSmgYlIwxkVilzWGa50IfrcTYD0=; b=Vo0u60zUJ85eRZyff78jnU9j4uhBhhsNusTlsWe9CUxZwgEiVU3gzxNno8anGcR5OJ G4Jn0STO/82PQ0mFY2x9rI3rLp1d31C4XiKMeQyntol30IXlRSx9WHoBTozdyUqhb3q+ GirJGPA57q3UNNwMe5NsY9oD5mulNyrot7PRj7K5Pse8HZ/lpqH3/ppIHpMMHFLT+uSI JbdR6bAC9+pbrp3hWEcWXIx7bp8Iw6CVQhgeOrOozTydsPCibioWjq59OGA1r8KxixWC 18COjXtmySFVKXrdftOtPyN5r5Konr09Qpt+Wfm572SzBNOutW8Zc9tVZOLtmXjjPyUQ +YHQ==
- In-reply-to: <20191114075727.kyilhlqwn5fyn4ur@chaz.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>
- 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> <20191114075727.kyilhlqwn5fyn4ur@chaz.gmail.com>
On Thu, Nov 14, 2019 at 10:57 AM Stephane Chazelas <
stephane.chazelas@xxxxxxxxx> wrote:
[...]
> It's what zsh does.
>
Oh, okay then.
> IIRC, POSIX leaves it unspecified.
>
> It also leaves unspecified which pipeline component if any may
> be run in the current shell process.
>
The standard says
> Additionally, each command of a multi-command pipeline is in a subshell
> environment; as an extension, however, any or all commands in a pipeline
> may be executed in the current environment.
I thought this means each component of a pipeline should be executed in a
subshell, but as an *extension*, implementations may prefer executing some
of them in the current environment. Seems like I was wrong.
Btw, I installed a more recent version (5.7.1), and in the DESCRIPTION
section of manual it says
> It does not provide compatibility with POSIX or other shells in its
default
> operating mode...
Now this explains everything. Sorry if I wasted your time
> --
> Stephane
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author