On Wed, Dec 03, 2014 at 06:51:08PM +0400, Gennady Kupava wrote: > That was quite unexpected for me as a user. I checked sed script like this: > echo "a > b"| sed '/a/!d' > > And that implementation detail were highly unexpected... What is the point > of multiline edits if quotes are unreliable for certain characters?
Disabling history expansion fixes all of these problems (at the cost of history expansion, obviously). I added set +o histexpand to my .bashrc years ago, back when echo "Hello world!" broke everything horribly. I have no regrets.