csh-style historyexpansion is certainly weird and idiosyncratic. As documented, the `!' may be escaped only with single quotes or a backslash. Doublequotes don't work because `!' is not one of the
According to the bash man page, it appears that only backslash and single quotes can escape the historyexpansion character ('!' by default). However, bash refuses to escape the historyexpansion cha
Bash Version: 2.05b Patch Level: 0 Release Status: release When command history is being used, the double quote may not be used to quote the historyexpansion character. Chet Indeed it does. However,
According to the bash man page, it appears that only backslash and single quotes can escape the historyexpansion character ('!' by default). However, bash refuses to escape the historyexpansion ch
1)It is a bug that ! cannot be quoted within doublequotes, not even by backslash. For example, the following ought to work: WARNING="Bad $USER\! Go $HOME\!" ; echo $WARNING Do you mean that because
Only single quotes and backslashes can quote the historyexpansion character. Since backslash is not one of the characters that is treated specially within doublequotes, backslashes before the hist
As Paul pointed out, that's appearantly expected behavior. Maybe the man page section that relates to what gets parsed within doublequotes should get updated so it lists ! as something that gets par
The second release candidate of bash-4.4 is now available with the URL ftp://ftp.cwru.edu/pub/bash/bash-4.4-rc2.tar.gz and via git from http://git.savannah.gnu.org/cgit/bash.git/?h=bash-4.4-testing T
This is the Bash FAQ, version 3.36, for Bash version 3.2. This document contains a set of frequently-asked questions concerning Bash, the GNU Bourne-Again Shell. Bash is a freely-available command in
The second beta release of bash-4.4 is now available with the URL ftp://ftp.cwru.edu/pub/bash/bash-4.4-beta2.tar.gz and via git from http://git.savannah.gnu.org/cgit/bash.git/?h=bash-4.4-testing This
Yes, this is where the semantics of historyexpansion clash with traditional shell behavior. Only single quotes inhibit historyexpansion. In that case, situation number 3 is producing the wrong res
This is the Bash FAQ, version 3.35, for Bash version 3.2. This document contains a set of frequently-asked questions concerning Bash, the GNU Bourne-Again Shell. Bash is a freely-available command in