From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18428 invoked from network); 10 Apr 2021 20:07:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Apr 2021 20:07:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Subject:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=cRgaR4pncIr77nOOpxoKlo1pVec0nggnQy5Ozr7X0dQ=; b=MwZiQKmfMJrDh9OmsBLD1cFfXk 6gmHXFscIfAWDFVrMQMPUd7YzZ8VRt2JeDn6IR4lTF4nBkE4uS4/bBu09VQ/3kL7lzbcry1931Bb6 TWmvOsEc6cKFBina+4IVmKHgbVKTNJxT9iDB4KrdXgIO/PozJ0tHY5Vq1zc2GSWZdnyVmFL6RWoH+ PMNvQh6O/glqHB6z+cwapkYQiRsTZvWGDDiE+08eUkRp9409Kk92AUb/UfQCo0mqyTRr6ziOzG4/V V5oyLcltVig5aYho2sHHUdsxMoBAII+JBoAoGMXRlFVSTj1v5tmFAjuNTNlzsJ9IapwL+YGLgrN2/ y9BrWe5A==; Received: from authenticated user by zero.zsh.org with local id 1lVJtE-0005b0-Gx; Sat, 10 Apr 2021 20:07:32 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lVJsk-0005MD-KD; Sat, 10 Apr 2021 20:07:02 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id C46AD27C0054 for ; Sat, 10 Apr 2021 16:07:00 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute1.internal (MEProxy); Sat, 10 Apr 2021 16:07:00 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudekfedgudegjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgfgse htqhertderreejnecuhfhrohhmpefnrgifrhgvnhgtvggpgggvlhojiihquhgviicuoehl rghrrhihvhesiihshhdrohhrgheqnecuggftrfgrthhtvghrnhepueefheelieekieejtd fggfetheehiedvtdeiudekjedvjefgjedufeekveelgfegnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhihvodhmvghsmhhtphgruh hthhhpvghrshhonhgrlhhithihqdduudehudekjeejtdegqdduudelvdejfeekhedqlhgr rhhrhihvpeepiihshhdrohhrghesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9D7F3A00079; Sat, 10 Apr 2021 16:07:00 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-273-g8500d2492d-fm-20210323.002-g8500d249 Mime-Version: 1.0 Message-Id: In-Reply-To: <1151a721-b9d5-48ca-9247-7ea5ba6aa206@www.fastmail.com> References: <20210104002213.2703305-1-sandals@crustytoothpaste.net> <20210104002213.2703305-2-sandals@crustytoothpaste.net> <1151a721-b9d5-48ca-9247-7ea5ba6aa206@www.fastmail.com> Date: Sat, 10 Apr 2021 16:05:30 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: zsh-workers@zsh.org Subject: =?UTF-8?Q?Re:_[PATCH_v3_1/1]_exec:_run_final_pipeline_command_in_a_subsh?= =?UTF-8?Q?ell_in_sh_mode?= Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 48470 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Sat, Apr 3, 2021, at 11:49 AM, Lawrence Vel=C3=A1zquez wrote: > On Sat, Mar 27, 2021, at 3:34 PM, Lawrence Vel=C3=A1zquez wrote: > > 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 she= ll > > > instead of a subshell. However, POSIX specifies that all commands= in a > > > pipeline run in a subshell, but permits zsh's behavior as an exten= sion. > > > The default /bin/sh implementations on various Linux distros and t= he > > > BSDs always use a subshell for all components of a pipeline. > > >=20 > > > Since zsh may be used as /bin/sh in some cases (such as macOS Cata= lina), > > > it makes sense to have the common sh behavior when emulating sh, s= o do > > > that by checking for being the final item of a multi-item pipeline= and > > > creating a subshell in that case. > >=20 > > ping for review >=20 > Ping: 2.0 You Can (Not) Review The Ping for Review Part III vq