[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Double quoted history expansion character cannot be escaped
From: |
Chris F.A. Johnson |
Subject: |
Re: Double quoted history expansion character cannot be escaped |
Date: |
Mon, 6 Aug 2012 21:15:42 -0400 (EDT) |
User-agent: |
Alpine 2.00 (LMD 1167 2008-08-23) |
On Mon, 6 Aug 2012, ksitze@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)