GNU bug report logs - #19243
echo comand bug

Previous Next

Package: coreutils;

Reported by: "Chema F. Ledesma" <hecam33 <at> gmail.com>

Date: Mon, 1 Dec 2014 18:02:03 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


Message #12 received at 19243-done <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: "Chema F. Ledesma" <hecam33 <at> gmail.com>, 19243-done <at> debbugs.gnu.org
Subject: Re: bug#19243: echo comand bug
Date: Mon, 01 Dec 2014 11:12:51 -0700
[Message part 1 (text/plain, inline)]
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

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 10 years and 229 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.