From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=FAKE_REPLY_C, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 6b14a481 for ; Sat, 7 Dec 2019 19:24:15 +0000 (UTC) Received: (qmail 26905 invoked by alias); 7 Dec 2019 19:24:07 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44989 Received: (qmail 22575 invoked by uid 1010); 7 Dec 2019 19:24:07 -0000 X-Qmail-Scanner-Diagnostics: from injection.crustytoothpaste.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25653. spamassassin: 3.4.2. Clear:RC:0(192.241.140.119):SA:0(-0.5/5.0):. Processed in 3.712825 secs); 07 Dec 2019 19:24:07 -0000 X-Envelope-From: sandals@crustytoothpaste.net X-Qmail-Scanner-Mime-Attachments: |signature.asc| X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at crustytoothpaste.net designates 192.241.140.119 as permitted sender) Date: Sat, 7 Dec 2019 19:23:24 +0000 From: "brian m. carlson" To: zsh-workers@zsh.org Subject: Re: [PATCH 0/1] Run final pipeline command in a subshell in sh mode Message-ID: <20191207192324.GA1334263@camp.crustytoothpaste.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: <20191124234119.2403456-1-sandals@crustytoothpaste.net> X-Machine: Running on camp using GNU/Linux on x86_64 (Linux kernel 5.3.0-2-amd64) User-Agent: Mutt/1.12.2 (2019-09-21) --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > POSIX sh implementations run each command in a pipeline in a subshell, > although zsh (and AT&T ksh) do not: instead, they run the final command > in the main shell. >=20 > zsh is starting to be used in some cases as /bin/sh, such as on macOS > Catalina. Whether this is a good idea or not, it makes sense to emulate > the POSIX behavior as much as possible when emulating sh, since that's > the least surprising behavior. This patch does exactly that. >=20 > With this patch, using "zsh --emulate sh" passes all but one test of the > Git testsuite. The remaining failure is due to zsh preserving NUL bytes > in the output of command substitutions, which is permitted by POSIX; I > will be sending a patch to fix that bug in the Git testsuite. Gentle ping. Is there any feedback that folks have on this patch? --=20 brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204 --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.2.17 (GNU/Linux) iQIzBAABCgAdFiEEX8OngXdrJt+H9ww3v1NdgR9S9osFAl3r/CwACgkQv1NdgR9S 9ouCsxAAhn9zrIWeg88y8g/MKLTzX5zdXU9uFQuICZ22sNypKuV/PQBmW1ZpoVJs 7PHjNjWW+8GvQSigIcd6xqvjwrJhOd4YyGFhEzIiwgiyIw8mcuUGUsL+eyej85dU e1BLSzHM6W6BwQpI8iBRmdZYWYdOHXKsNm/o+UDtoNu4qLbssh+L9W2W5jB5y1FW kR5n+CfMTv96MxFTVtaSFD9G1BvNjR1prLvHrudwei/GIqB+vQ4mJzpN8prgu8FW TWIqtyFsJ5z/2QcjwxKK0QQ85J5GMAOwnErELe/Z7/zm9ok4gkGIuqeg0vJQmfnK G8MhNMWCQ0gD4m2pq93XrM6xu5Nxdl7lhmDBd7325PbxBlIonIXJ+YMF5/b2xZs8 0ZUpYh6YM9GhdeIQk/ZjxKeVZCbGZmyT229qgc+FxupW9uLPWzwvSHA8bkCCqJH4 MAWgnzqoOQqs+eL6Hv55aPrNRMqjwiruPwOF/Yk7IWZhPrgmMmDi+MyxBMWUYVvy eHg6xSybIU818ulCrAGu1pV3sLSW6dCpGNGlhWbHConn15RhrtErF6Zt5htSi8Ck 31OVi+uBEHmpMTLuBHXY1011f6b/dK6c+F5O2W/FrIlJIZ1L5Fd09l6GSijZwhpL CLgWMlFxP9oUzonAfz3rtgdj4NmP8vsGg1OqbvtGKPxpoyG02xw= =J0tz -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL--