From unknown Fri Aug 15 03:56:57 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#19243 <19243@debbugs.gnu.org> To: bug#19243 <19243@debbugs.gnu.org> Subject: Status: echo comand bug Reply-To: bug#19243 <19243@debbugs.gnu.org> Date: Fri, 15 Aug 2025 10:56:57 +0000 retitle 19243 echo comand bug reassign 19243 coreutils submitter 19243 "Chema F. Ledesma" severity 19243 normal tag 19243 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 01 13:01:04 2014 Received: (at submit) by debbugs.gnu.org; 1 Dec 2014 18:01:04 +0000 Received: from localhost ([127.0.0.1]:51055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XvVHU-0006B9-8P for submit@debbugs.gnu.org; Mon, 01 Dec 2014 13:01:04 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44137) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XvVCp-0004w7-RN for submit@debbugs.gnu.org; Mon, 01 Dec 2014 12:56:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvVCo-0005kW-Ox for submit@debbugs.gnu.org; Mon, 01 Dec 2014 12:56:15 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvVCo-0005kS-Mc for submit@debbugs.gnu.org; Mon, 01 Dec 2014 12:56:14 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvVCk-00057F-O0 for bug-coreutils@gnu.org; Mon, 01 Dec 2014 12:56:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvVCh-0005j5-2C for bug-coreutils@gnu.org; Mon, 01 Dec 2014 12:56:10 -0500 Received: from mail-vc0-x22d.google.com ([2607:f8b0:400c:c03::22d]:38675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvVCg-0005ig-UN for bug-coreutils@gnu.org; Mon, 01 Dec 2014 12:56:07 -0500 Received: by mail-vc0-f173.google.com with SMTP id im17so4891218vcb.18 for ; Mon, 01 Dec 2014 09:56:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=Xh8GdliHkHx4QZkEbEt3IojzOSprrPxFhacvZSRztNM=; b=vVXYkegAERhOnv2Ealhc88Ie6GybNM2h90Vk270ED41w+Z4z2AyIpR1bFkbdUeD4pg n35wtqwMD2G8y5SfxdF4JwSzVc0P+szungjJ5wJhwz9UVKaOvlTNkju/f4XVHcf0ir4z AE77N4TGCiUKhM2g885DYYzgJGvRabOIplJbl8utLOqP6MI8drIQatgbGWqPCY1A8D/0 qGWxb+HxjHwoGwY/OagGjMib87pBatrmn/8X8TgIRzy6K8/BHcUp4p5XZn7qgyz8eFM0 xux+PUvgchNPgYp5ijnzcPI6pj240SYfa190GnT3Nk33Hns+RNyZXSopp7vH/YLMIJI4 gAkg== MIME-Version: 1.0 X-Received: by 10.52.26.45 with SMTP id i13mr24140852vdg.93.1417456565350; Mon, 01 Dec 2014 09:56:05 -0800 (PST) Received: by 10.31.8.137 with HTTP; Mon, 1 Dec 2014 09:56:05 -0800 (PST) Date: Mon, 1 Dec 2014 18:56:05 +0100 X-Google-Sender-Auth: 5mH-ePFKt8FhiV3txFgsYVLE7b0 Message-ID: Subject: echo comand bug From: "Chema F. Ledesma" To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary=20cf307cffa21002fa05092b53c0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 01 Dec 2014 13:01:02 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --20cf307cffa21002fa05092b53c0 Content-Type: text/plain; charset=UTF-8 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 --20cf307cffa21002fa05092b53c0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,=C2=A0

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

If yo= u execute echo "!!!!!!!!!!!!!!!!!!!!!!!!" it does something stran= ge repeating the last command before echo comand.

= I am using Ubuntu 14.04

--
Chema F. Ledesma
--20cf307cffa21002fa05092b53c0-- From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 01 13:12:55 2014 Received: (at control) by debbugs.gnu.org; 1 Dec 2014 18:12:56 +0000 Received: from localhost ([127.0.0.1]:51063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XvVSx-0006kB-GZ for submit@debbugs.gnu.org; Mon, 01 Dec 2014 13:12:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48495) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XvVSv-0006jy-4m; Mon, 01 Dec 2014 13:12:54 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sB1ICqVk010227 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 1 Dec 2014 13:12:52 -0500 Received: from [10.3.113.126] (ovpn-113-126.phx2.redhat.com [10.3.113.126]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sB1ICprf025008; Mon, 1 Dec 2014 13:12:51 -0500 Message-ID: <547CAFA3.90301@redhat.com> Date: Mon, 01 Dec 2014 11:12:51 -0700 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: "Chema F. Ledesma" , 19243-done@debbugs.gnu.org Subject: Re: bug#19243: echo comand bug References: In-Reply-To: OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="VX2Th0vH9VNooPHrkjtpu1BCIvNJnaFNK" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --VX2Th0vH9VNooPHrkjtpu1BCIvNJnaFNK Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable tag 19243 notabug thanks On 12/01/2014 10:56 AM, Chema F. Ledesma wrote: > Hello, >=20 > I just wanted to report a bug i think i hava found on the echo comand. >=20 > If you execute echo "!!!!!!!!!!!!!!!!!!!!!!!!" it does something strang= e > 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 questio= ns. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --VX2Th0vH9VNooPHrkjtpu1BCIvNJnaFNK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg iQEcBAEBCAAGBQJUfK+jAAoJEKeha0olJ0NqZcgH/2VtHCC+6Te7szdgHWs1cQe8 nse5K6VrJvaQaaq41ssckHypEIf41cDD8KhpHb3eheURq+GTF9Q86xvjOhP5rV18 O1RyBoeN1jFiLqAmplTFQ673WG6mG/SKfUGzmpUwjl/daS2fRmsNo+yhIvHeTRti gA1BF7dTZ3q+2Mktg+BF56tEVDxUMVUYxHR7LI0wfgdqeXps/IX3YMh0Za7GjqjG RlMRyAhjmYdpKs0ygM+5XVidlNvl32Pc9k1G31zFgsubesCTfoGxcyXpWjl/THbV IZUPrb+pnJr/Jkng9Cs3L+CemEFclrmMKaDwuunj3zUWXM3tRi872s7Bb8p6eiw= =6BR8 -----END PGP SIGNATURE----- --VX2Th0vH9VNooPHrkjtpu1BCIvNJnaFNK-- From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 02 04:28:33 2014 Received: (at 19243-done) by debbugs.gnu.org; 2 Dec 2014 09:28:33 +0000 Received: from localhost ([127.0.0.1]:51398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xvjl2-0000SS-LE for submit@debbugs.gnu.org; Tue, 02 Dec 2014 04:28:32 -0500 Received: from mailgw1.uni-kl.de ([131.246.120.220]:50192) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xvjkz-0000SF-Hn for 19243-done@debbugs.gnu.org; Tue, 02 Dec 2014 04:28:30 -0500 Received: from sushi.unix-ag.uni-kl.de (sushi.unix-ag.uni-kl.de [IPv6:2001:638:208:ef34:0:ff:fe00:65]) by mailgw1.uni-kl.de (8.14.4/8.14.4/Debian-7) with ESMTP id sB29SS62009981 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 2 Dec 2014 10:28:28 +0100 Received: from sushi.unix-ag.uni-kl.de (ip6-localhost [IPv6:::1]) by sushi.unix-ag.uni-kl.de (8.14.4/8.14.4/Debian-4) with ESMTP id sB29SRlB017420 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 2 Dec 2014 10:28:27 +0100 Received: (from auerswal@localhost) by sushi.unix-ag.uni-kl.de (8.14.4/8.14.4/Submit) id sB29SRIi017416; Tue, 2 Dec 2014 10:28:27 +0100 Date: Tue, 2 Dec 2014 10:28:27 +0100 From: Erik Auerswald To: 19243-done@debbugs.gnu.org, "Chema F. Ledesma" Subject: Re: bug#19243: echo comand bug Message-ID: <20141202092827.GA15765@unix-ag.uni-kl.de> References: <547CAFA3.90301@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <547CAFA3.90301@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 19243-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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 '!!!!!!!!!!!!!!!!!!!!!!!!' !!!!!!!!!!!!!!!!!!!!!!!! Thanks, Erik -- Be water, my friend. -- Bruce Lee From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 02 08:22:18 2014 Received: (at 19243-done) by debbugs.gnu.org; 2 Dec 2014 13:22:18 +0000 Received: from localhost ([127.0.0.1]:51492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XvnPG-0001Cp-HA for submit@debbugs.gnu.org; Tue, 02 Dec 2014 08:22:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36977) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XvnPE-0001Cf-IZ for 19243-done@debbugs.gnu.org; Tue, 02 Dec 2014 08:22:17 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sB2DME9r010510 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 2 Dec 2014 08:22:15 -0500 Received: from [10.3.113.126] (ovpn-113-126.phx2.redhat.com [10.3.113.126]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sB2DMDLT022686; Tue, 2 Dec 2014 08:22:13 -0500 Message-ID: <547DBD05.50506@redhat.com> Date: Tue, 02 Dec 2014 06:22:13 -0700 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Erik Auerswald , 19243-done@debbugs.gnu.org, "Chema F. Ledesma" Subject: Re: bug#19243: echo comand bug References: <547CAFA3.90301@redhat.com> <20141202092827.GA15765@unix-ag.uni-kl.de> In-Reply-To: <20141202092827.GA15765@unix-ag.uni-kl.de> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3fPVkojsHND3NFSdgSBTt3Lffd7rwi60D" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 19243-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --3fPVkojsHND3NFSdgSBTt3Lffd7rwi60D Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 12/02/2014 02:28 AM, Erik Auerswald wrote: > Hi, >=20 > 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 stra= nge >>> 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. >=20 > And because of this you can use single quotes instead of double quotes = to > print those exclamation marks: >=20 > $ echo '!!!!!!!!!!!!!!!!!!!!!!!!' > !!!!!!!!!!!!!!!!!!!!!!!! Or turn off history expansion: $ set +o history $ echo "!!!!" !!!! --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --3fPVkojsHND3NFSdgSBTt3Lffd7rwi60D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg iQEcBAEBCAAGBQJUfb0FAAoJEKeha0olJ0Nqbt0H/2bL1V5LiZb5Sx50L0NPK9B1 Rck+RbOR/fgkeM13qyJb1aYQu2+X97dl+XHQeXgYCrX/3khl2nq8lUD5JIxhymtX Nr23cqs2SQKPA/PlopCuz6yjrCXt+UUymbVhjhL1VWQEFFjqcmOQf2/MoRJi/vOv 6JOo0qSL84GQvqQGViQnaneWEGNrl+ZgyyxEcjH7w8wZ8b8qF1fjDR8ELbiAnaPN 69UkAobtWit3cob3HwTVLDXraap6fGNmIcgZg+XKe4nibpOK2yQpakYC142l5ii7 yXRJCyeRJLqxu3vmKIlXzbC9xUcoUlVYzIOt2PYS5kUEw3VlZwctFQNKT4jzaUk= =+s6/ -----END PGP SIGNATURE----- --3fPVkojsHND3NFSdgSBTt3Lffd7rwi60D-- From unknown Fri Aug 15 03:56:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 31 Dec 2014 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator