help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why are pipeline commands (allowed to be) executed in subshells?


From: Philippe Cerfon
Subject: Re: why are pipeline commands (allowed to be) executed in subshells?
Date: Wed, 21 Dec 2022 23:46:57 +0100

Hey Chet.

On Wed, Dec 21, 2022 at 4:20 PM Chet Ramey <chet.ramey@case.edu> wrote:
> When the shell is running a loop and a child process dies due to SIGINT,
> the shell pretends it got the SIGINT to break the loop. This reduces user
> surprise and frustration.

Ah, and I guess it learns about the process being killed by an INT via the CHLD.

Is this somewhere documented? Because I've had read in the "Signals"
section of the manpage and from there I wouldn't have deduced this.

Thanks,
P.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]