Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH v3 1/1] exec: run final pipeline command in a subshell in sh mode



On 2021-04-10 at 23:02:39, dana wrote:
> On 3 Jan 2021, at 18:22, brian m. carlson <sandals@xxxxxxxxxxxxxxxxxxxx> wrote:
> > 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
> 
> This seems inoffensive to me. Since nobody objected to the code itself in the
> previous discussions i've committed it.

Great, thanks.

> I did want to mention that macOS does *not* use zsh as /bin/sh. That continues
> to be provided by bash 3.2; only the default interactive shell was changed to
> zsh. I don't think i know of any system that uses zsh for /bin/sh

That's definitely true by default, but I believe users can also choose
to set dash or zsh as /bin/sh by changing /var/select/sh, as of
Catalina.
-- 
brian m. carlson (he/him or they/them)
Houston, Texas, US

Attachment: signature.asc
Description: PGP signature



Messages sorted by: Reverse Date, Date, Thread, Author