On Thu, Mar 21, 2024 at 7:13 PM Gioele Barabucci <gio...@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?