bug-bash
[Top][All Lists]
Advanced

[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: Mon, 06 Aug 2012 21:14:11 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120614 Thunderbird/13.0.1

On 8/6/12 7:37 PM, ksitze@gmail.com wrote:

> Current behavior:
> 
> [1]$ mkdir ~/tmp
> [2]$ cd ~/tmp
> [3]$ touch hello\ world\!
> [4]$ ls
> hello world!
> [5]$ ls hello\ world\!
> hello world!
> [6]$ ls "hello world!"
> bash: !": event not found

Thanks for the report.  This has already been changed for the next version.

> [1]$ echo "hello"
> a
> [2]$ echo "!e"
> echo "echo hello"
> echo hello
> [3]$ echo " !e"
> bash: !e": event not found
> [4]$ echo "#!e"
> bash: !e": event not found
> [5]$ echo " #!e"
>  #!e

This will be fixed in the next version.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/





reply via email to

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