On 4/14/15 2:46 PM, Nikola Kržalić wrote:
> 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?
Bash doesn't perform any special handling on rece
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 wrote:
> Nikola Kržalić writes:
>
>> And if I d
You can trap SIGPIPE and handle it.
--
Eduardo Bustamante
https://dualbus.me/
Nikola Kržalić 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, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"An