Zsh Mailing List Archive
Messages sorted by:
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: <firstname.lastname@example.org>
- List-help: <mailto:email@example.com>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- List-unsubscribe: <mailto:email@example.com>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAH7i3Lo57yAd==m7zF+8mtETqYDDSptmdzxF-2t_pu42fe9ztQ__41421.firstname.lastname@example.org> <email@example.com> <CAH7i3LrwD4G0CJ3WvdWZsp5u-cSTQoGomSf6HHF1XG8NnA89Vw__34634.firstname.lastname@example.org> <email@example.com>
On Thu, Nov 14, 2019 at 10:57 AM Stephane Chazelas <
> 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
> operating mode...
Now this explains everything. Sorry if I wasted your time
Messages sorted by: