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: Oğuz
Subject: Re: Bash exits with "Broken pipe" with process subsitution and sleep
Date: Tue, 2 Sep 2025 11:13:23 +0300

On Monday, September 1, 2025, Maria <mariacalia@proton.me> wrote:

> I don't understand why that behavior _should be_
> what happens.


I don't think that's set in stone.

If at all possible, I would really like bash to at least not exit early,
> similarly to ksh and zsh.
>

But I don't like how zsh handles it:

echo: write error: broken pipe
zsh: write error: broken pipe
echo: write error: broken pipe
zsh: write error: broken pipe
echo: write error: broken pipe
zsh: write error: broken pipe
echo: write error: broken pipe
zsh: write error: broken pipe
echo: write error: broken pipe
zsh: write error: broken pipe

If a change is really necessary, bash should print "Broken pipe" and abort
the outermost compound command.


-- 
Oğuz


reply via email to

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