On Sunday, August 31st, 2025 at 4:15 PM, Andreas Schwab <sch...@linux-m68k.org> wrote: > That's correct behaviour. The shell executes the compound command and > the containing builtin commands directly and thus receives the signal, > as soon as it produces more output than what fits in the pipe buffer.
Can you please link to the manual page or other source that documents this behavior? Bash exiting early with an exit code indicating a signal using nothing but a command line does not sound like expected behavior to me. A command line like (sleep 1; echo) | echo would find itself in a similar situation, and yet it doesn't make Bash crash, as I would expect.