On Mon, 6 Aug 2012, ksi...@gmail.com wrote:
According to the bash man page, it appears that only backslash and single quotes can escape the history expansion character ('!' by default). However, bash refuses to escape the history expansion character when placed in double quotes DESPITE acting as if it had actually done so.
...
This is simply perverse and should be fixed as there doesn't seem to be any reason for this behavior.
I find it perverse that a printing character does anything other than print itself on the screen. To fix that, I put this in ~/.bashrc: histchars= -- Chris F.A. Johnson, <http://cfajohnson.com/> Author: Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress) Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)