bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash exits with "Broken pipe" with process subsitution and sleep


From: Andreas Schwab
Subject: Re: Bash exits with "Broken pipe" with process subsitution and sleep
Date: Sun, 31 Aug 2025 22:14:57 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

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, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]