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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: "Chema F. Ledesma" <hecam33 <at> gmail.com>
Subject: bug#19243: closed (Re: bug#19243: echo comand bug)
Date: Mon, 01 Dec 2014 18:13:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#19243: echo comand bug

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 19243 <at> debbugs.gnu.org.

-- 
19243: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19243
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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 3 (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)]
[Message part 5 (message/rfc822, inline)]
From: "Chema F. Ledesma" <hecam33 <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: echo comand bug
Date: Mon, 1 Dec 2014 18:56:05 +0100
[Message part 6 (text/plain, inline)]
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
[Message part 7 (text/html, inline)]

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.