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

Re: broken pipe message with setopt PRINT_EXIT_VALUE



On Sat, May 29, 2021 at 4:44 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> Bart Schaefer wrote on Fri, May 28, 2021 at 14:26:25 -0700:
> > PRINT_EXIT_VALUE is disabled in subshells because subshells do not
> > normally maintain a jobs table like an interactive shell does.
>
> That's the reason in implementation terms, but what's the reason in
> user-facing terms?

Command grouping.  The exit value of the subshell is still printed by
the parent if the whole group's status is nonzero.




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