From: "Lawrence Velázquez" <vq@larryv.me>
To: zsh-workers@zsh.org
Cc: "brian m. carlson" <sandals@crustytoothpaste.net>
Subject: Re: [PATCH v3 1/1] exec: run final pipeline command in a subshell in sh mode
Date: Sat, 27 Mar 2021 15:34:26 -0400 [thread overview]
Message-ID: <ff2926e2-5756-44e0-b3aa-6055a70020ad@www.fastmail.com> (raw)
In-Reply-To: <20210104002213.2703305-2-sandals@crustytoothpaste.net>
On Sun, Jan 3, 2021, at 7:22 PM, brian m. carlson wrote:
> zsh typically runs the final command in a pipeline in the main shell
> instead of a subshell. However, POSIX specifies that all commands in a
> pipeline run in a subshell, but permits zsh's behavior as an extension.
> The default /bin/sh implementations on various Linux distros and the
> BSDs always use a subshell for all components of a pipeline.
>
> Since zsh may be used as /bin/sh in some cases (such as macOS Catalina),
> it makes sense to have the common sh behavior when emulating sh, so do
> that by checking for being the final item of a multi-item pipeline and
> creating a subshell in that case.
ping for review
vq
next prev parent reply other threads:[~2021-03-27 19:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-04 0:22 [PATCH v3 0/1] Run pipeline command in " brian m. carlson
2021-01-04 0:22 ` [PATCH v3 1/1] exec: run final pipeline command in a " brian m. carlson
2021-03-27 19:34 ` Lawrence Velázquez [this message]
2021-04-03 15:49 ` Lawrence Velázquez
2021-04-10 20:05 ` Lawrence Velázquez
2021-04-10 23:02 ` dana
2021-04-10 23:59 ` brian m. carlson
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=ff2926e2-5756-44e0-b3aa-6055a70020ad@www.fastmail.com \
--to=vq@larryv.me \
--cc=sandals@crustytoothpaste.net \
--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).