bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Backslash quoting the history character within double-quotes


From: Bruce LaZerte
Subject: Backslash quoting the history character within double-quotes
Date: Thu, 21 Mar 2002 12:32:31 -0500

Configuration Information:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linuuname output: Linux asustwo 2.4.16 #2 Thu Mar 14 16:13:03 
EST 2002 i686 unknown Machine Type: i386-pc-linux-gnu

Bash Version: 2.05a
Patch Level: 0
Release Status: release

Description:
The following:

HELP=Help
echo "$HELP me rhonda\!"

gives me the following:

Help me rhonda\!

In other words, backslash quoting the history character within double-quotes 
does not "eat" the backslash although history expansion is disabled.

Without the backslash, !" does a history expansion equivalent to typing !" at 
the command line. 

I cannot switch to single quotes because I wish to expand $HELP.

Bug, weirdness or idiosyncracy?

Thanks,
Bruce L.
__________________________________________
Bruce LaZerte 
Grandview Lake in Muskoka
Baysville, Ontario, Canada                              



reply via email to

[Prev in Thread] Current Thread [Next in Thread]