On Aug 31 2025, Maria wrote: > Please try the command I provided, particularly the one that starts > with "for". I tried the input you provided, and indeed it is just > the subprocess that exits, but with my input, it is Bash itself that > exits, not the subprocess.
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. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."