Re: Debian bug #822605: SIGPIPE not handled in "echo >", terminates shel
From:
Oğuz
Subject:
Re: Debian bug #822605: SIGPIPE not handled in "echo >", terminates shell
Date:
Thu, 21 Mar 2024 20:08:43 +0300
On Thu, Mar 21, 2024 at 7:13 PM Gioele Barabucci <gioele@svario.it> wrote:
> The command in the first shell will exit after a random number of
> iterations with "terminated with exit status 141".
That's what every other shell does.
> Regardless of the reason for the SIGPIPE, the reporter expects the loop
> to carry on indefinitely (`while true; ...`).
Then he should do `trap '' PIPE' before the loop.
> > it is incorrect that > SIGPIPE terminates the subshell.
Why?