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

Re: [PATCH v2] exec: run final pipeline command in a subshell in sh mode



On Fri, Jun 5, 2020 at 1:42 PM brian m. carlson
<sandals@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> I will tell you that as a practical matter, nobody writing code for sh
> expects the last command not to be run in a subshell and consequently
> lots of code is practically broken in this case with zsh as /bin/sh.

I believe you, but would be curious to see an example.

For what it's worth, I'm not opposed to this patch.  I think it's
pretty unlikely that anyone is invoking zsh as sh and still expecting
to be able to (for example) pipe into read to set variables in the
current shell.



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