[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash crashes on SIGPIPE
From: |
Nikola Kržalić |
Subject: |
Re: bash crashes on SIGPIPE |
Date: |
Tue, 14 Apr 2015 20:46:28 +0200 |
I wonder if this is the correct behavior in interactive bash as well?
Because if I do this via ssh my connection drops as well and I have to
reconnect. Shouldn't just echo return a non-zero exit code?
On Tue, Apr 14, 2015 at 7:26 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Nikola Kržalić <nikola@krzalic.com> writes:
>
>> And if I decide to run echo again, bash simply crashes.
>
> It is not a crash, it is the correct behaviour. Don't try to write to a
> broken pipe.
>
> Andreas.
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
--
S poštovanjem / Regards,
Nikola Kržalić.