Double quoted history expansion character cannot be escaped

2012-08-06 Thread ksitze
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. The version o

Re: Double quoted history expansion character cannot be escaped

2012-08-06 Thread Chet Ramey
On 8/6/12 7:37 PM, ksi...@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 chan

Re: Double quoted history expansion character cannot be escaped

2012-08-06 Thread Chris F.A. Johnson
On Mon, 6 Aug 2012, ksi...@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 actin