From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 12 11:32:10 2016 Received: (at submit) by debbugs.gnu.org; 12 Apr 2016 15:32:10 +0000 Received: from localhost ([127.0.0.1]:32955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aq0IU-00009r-6X for submit@debbugs.gnu.org; Tue, 12 Apr 2016 11:32:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apyD1-0004zc-29 for submit@debbugs.gnu.org; Tue, 12 Apr 2016 09:18:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apyCp-0003eu-Ct for submit@debbugs.gnu.org; Tue, 12 Apr 2016 09:18:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apyCp-0003ej-90 for submit@debbugs.gnu.org; Tue, 12 Apr 2016 09:18:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apyCj-0007yh-FG for bug-coreutils@gnu.org; Tue, 12 Apr 2016 09:18:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apyCf-0003ah-9A for bug-coreutils@gnu.org; Tue, 12 Apr 2016 09:18:05 -0400 Received: from mx1.science-computing.de ([217.243.222.155]:55927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apyCf-0003aY-2R for bug-coreutils@gnu.org; Tue, 12 Apr 2016 09:18:01 -0400 Received: from localhost (localhost [127.0.0.1]) by scmail.science-computing.de (Postfix) with ESMTP id 66CA156F5 for ; Tue, 12 Apr 2016 15:17:58 +0200 (CEST) X-Virus-Scanned: amavisd-new Received: from scmail.science-computing.de ([127.0.0.1]) by localhost (obi.science-computing.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aV_a9kpwoEQt for ; Tue, 12 Apr 2016 15:17:57 +0200 (CEST) Received: from [10.10.16.186] (anubis.science-computing.de [10.10.16.186]) by scmail.science-computing.de (Postfix) with ESMTPS id B8BC986A for ; Tue, 12 Apr 2016 15:17:57 +0200 (CEST) To: bug-coreutils@gnu.org From: Ulrich Sibiller Subject: md5sum: Output broken when filename contains \n Message-ID: <570CF585.8040407@science-computing.de> Date: Tue, 12 Apr 2016 15:17:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 12 Apr 2016 11:32:09 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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 (-----) SGVsbG8sCgpJIG9ic2VydmUgYSBzdHJhbmdlIGJlaGF2aW91ciBmb3Ige21kNSxzaGExLHNoYTUx Mn1zdW0gb24gUkhFTCA2Ljc6CgojIHNoYTUxMnN1bSBkYXRfZmlsZXMvMS4wMDBlLTAxKmRhdAph NjZmNmY4ZjhkYTI1NmQwNzMzMGExN2JlYTk0MmJiYTk1ODRlMTgyNzk5ZGNlMmE0MmJjN2U4ODJk NGQ5MjY3YzQwNTY4NjQ0ZDdmN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NvbW1lcmNp YWwgUmVnaXN0ZXIgTm8uOiBIUkIgMzgyMTk2Cg== From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 12 11:37:56 2016 Received: (at control) by debbugs.gnu.org; 12 Apr 2016 15:37:56 +0000 Received: from localhost ([127.0.0.1]:32963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aq0O4-0000Ih-7O for submit@debbugs.gnu.org; Tue, 12 Apr 2016 11:37:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aq0O2-0000IK-DF; Tue, 12 Apr 2016 11:37:55 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 741AE64D0B; Tue, 12 Apr 2016 15:37:48 +0000 (UTC) Received: from [10.3.113.194] (ovpn-113-194.phx2.redhat.com [10.3.113.194]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u3CFblOJ030728; Tue, 12 Apr 2016 11:37:48 -0400 Subject: Re: bug#23277: md5sum: Output broken when filename contains \n To: Ulrich Sibiller , 23277-done@debbugs.gnu.org References: <570CF585.8040407@science-computing.de> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Organization: Red Hat, Inc. Message-ID: <570D164B.5010002@redhat.com> Date: Tue, 12 Apr 2016 09:37:47 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <570CF585.8040407@science-computing.de> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="FmRsPg7GAGKeu6BuvsVsXTUx7vJubxL9K" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 12 Apr 2016 15:37:48 +0000 (UTC) X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -6.0 (------) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --FmRsPg7GAGKeu6BuvsVsXTUx7vJubxL9K Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable tag 23277 notabug thanks On 04/12/2016 07:17 AM, Ulrich Sibiller wrote: > Hello, >=20 > I observe a strange behaviour for {md5,sha1,sha512}sum on RHEL 6.7: >=20 > # sha512sum dat_files/1.000e-01*dat > a66f6f8f8da256d07330a17bea942bba9584e182799dce2a42bc7e882d4d9267c405686= 44d7f5b63128b286a6393764fc599cc30f687b8dacf86e0a96d87795c > dat_files/1.000e-01.dat > \a66f6f8f8da256d07330a17bea942bba9584e182799dce2a42bc7e882d4d9267c40568= 644d7f5b63128b286a6393764fc599cc30f687b8dacf86e0a96d87795c > dat_files/1.000e-01\n.dat >=20 > The second file has \n in the name and the output gets a backslash > prepended which looks wrong to me. Thanks for the report, but the behavior you are seeing is documented as intentional. This is so that a newline in a filename is unambiguously parseable via an escape sequence (the leading \ tells you that escape sequences will be present). As the manual mentions that this is intentional behavior, I'm closing this as not a bug, but feel free to respond with further comments. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --FmRsPg7GAGKeu6BuvsVsXTUx7vJubxL9K Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJXDRZLAAoJEKeha0olJ0NqrLQH/0RLFQKIiBgLTrdxD6CncUJb YM0j9kxCAO2e0fmSL/13Ks19yuiM0za9u2Pqm2/vB/36+CklcZLRIipjHcBU4Jc0 YR77Ks129sY7VxWUlN+mVLLezXNUrBxN3xFhzrfJ1+SRPg97D8L7vIotZCQXOOKT TvvDrDEStaa6wTWIgbJ99INTpSSeinsV46uQIxAul5aYrKPg9Yri5ESZTQ8SX1wZ ejTH8tOcrE+fmAjxCtB4v6XjJ6n/gOBqZTg+Ihi+hmGNEw8ozMDBs2QkjBwTp+Ia prTWUyKbKHU3RnkmSjoSSJhZ/6pgNCtBD6sSrSQ1WEG/kjU20JHBPQMWjTW6nk8= =3UhG -----END PGP SIGNATURE----- --FmRsPg7GAGKeu6BuvsVsXTUx7vJubxL9K-- From unknown Sun Jun 22 11:39:06 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, 11 May 2016 11:24:04 +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