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 <sch...@linux-m68k.org> wrote: > Nikola Kržalić <nik...@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, sch...@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ć.