Control: retitle -1 bash: SIGPIPE not handled, terminates shell
Control: found -1 5.2.21-2

Bash 5.2.21 still exhibits this issue, the subshell terminates once a SIGPIPE is received:

(shell1)$ rm -f /tmp/f && mkfifo /tmp/f && (i=0; while true; do echo $((i=i+1)) > /tmp/f; done); echo "terminated with exit status $?"

(shell2)$ while true; do echo $(< /tmp/f); done

The command in shell1 will output "terminated with exit status 141".

For the record, dash 0.5.12 has the same behavior.

Regards,

--
Gioele Barabucci

Reply via email to