[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19243: echo comand bug
From: |
Eric Blake |
Subject: |
bug#19243: echo comand bug |
Date: |
Tue, 02 Dec 2014 06:22:13 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
On 12/02/2014 02:28 AM, Erik Auerswald wrote:
> Hi,
>
> On Mon, Dec 01, 2014 at 11:12:51AM -0700, Eric Blake wrote:
>> On 12/01/2014 10:56 AM, Chema F. Ledesma wrote:
>>>
>>> If you execute echo "!!!!!!!!!!!!!!!!!!!!!!!!" it does something strange
>>> repeating the last command before echo comand.
>>
>> Thanks for the report. However, this is not a bug in 'echo', but a
>> feature of your shell.
>
> And because of this you can use single quotes instead of double quotes to
> print those exclamation marks:
>
> $ echo '!!!!!!!!!!!!!!!!!!!!!!!!'
> !!!!!!!!!!!!!!!!!!!!!!!!
Or turn off history expansion:
$ set +o history
$ echo "!!!!"
!!!!
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature