emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#19243: closed (echo comand bug)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#19243: closed (echo comand bug)
Date: Mon, 01 Dec 2014 18:13:02 +0000

Your message dated Mon, 01 Dec 2014 11:12:51 -0700
with message-id <address@hidden>
and subject line Re: bug#19243: echo comand bug
has caused the debbugs.gnu.org bug report #19243,
regarding echo comand bug
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
19243: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19243
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: echo comand bug Date: Mon, 1 Dec 2014 18:56:05 +0100
Hello, 

I just wanted to report a bug i think i hava found on the echo comand.

If you execute echo "!!!!!!!!!!!!!!!!!!!!!!!!" it does something strange repeating the last command before echo comand.

I am using Ubuntu 14.04

--
Chema F. Ledesma

--- End Message ---
--- Begin Message --- Subject: Re: bug#19243: echo comand bug Date: Mon, 01 Dec 2014 11:12:51 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0
tag 19243 notabug
thanks

On 12/01/2014 10:56 AM, Chema F. Ledesma wrote:
> Hello,
> 
> I just wanted to report a bug i think i hava found on the echo comand.
> 
> 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.  At least bash has a notion of history expansion,
where double-quoted ! is a shortcut for injecting previously-typed
commands from your history into the current command invocation.  Read
'man bash' and search for "history" for details.

History expansion occurs BEFORE 'echo' sees its command line arguments.
 You'd get the same effect with ANY OTHER COMMAND, when given the same
argument.  Thus, this is not a bug in coreutils, and I'm closing this
report, although you should feel free to comment with any further questions.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

reply via email to

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