[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Double quoted history expansion character cannot be escaped
From: |
Chet Ramey |
Subject: |
Re: Double quoted history expansion character cannot be escaped |
Date: |
Tue, 07 Aug 2012 09:40:13 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 |
On 8/7/12 8:14 AM, Greg Wooledge wrote:
> On Mon, Aug 06, 2012 at 09:14:11PM -0400, Chet Ramey wrote:
>>> [6]$ ls "hello world!"
>>> bash: !": event not found
>>
>> Thanks for the report. This has already been changed for the next version.
>
> Ah, so you've changed your stance a decade after
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=135402
Not completely. The change is that a double quote following the history
expansion character inhibits history expansion in a double-quoted string.
Nonsense like !"" will still attempt history expansion.
The treatment of "\!" has not changed.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/