> 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. > > 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. > > 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? -- brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204
Attachment:
signature.asc
Description: PGP signature