From unknown Thu Jun 19 14:21:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25009: ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21) Resent-From: Kay Parker Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 23 Nov 2016 23:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25009 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 25009@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14799423782985 (code B ref -1); Wed, 23 Nov 2016 23:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Nov 2016 23:06:18 +0000 Received: from localhost ([127.0.0.1]:39674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9gcL-0000m5-Ly for submit@debbugs.gnu.org; Wed, 23 Nov 2016 18:06:17 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9gZG-0000h7-QU for submit@debbugs.gnu.org; Wed, 23 Nov 2016 18:03:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9gZA-0001ug-LN for submit@debbugs.gnu.org; Wed, 23 Nov 2016 18:03:01 -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.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59888) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c9gZA-0001uX-Hr for submit@debbugs.gnu.org; Wed, 23 Nov 2016 18:03:00 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9gZ9-0004qY-Gt for bug-coreutils@gnu.org; Wed, 23 Nov 2016 18:03:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9gZ6-0001s7-ET for bug-coreutils@gnu.org; Wed, 23 Nov 2016 18:02:59 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:44193) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c9gZ6-0001rQ-96 for bug-coreutils@gnu.org; Wed, 23 Nov 2016 18:02:56 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 8836221BE8 for ; Wed, 23 Nov 2016 18:02:53 -0500 (EST) Received: from web6 ([10.202.2.216]) by compute6.internal (MEProxy); Wed, 23 Nov 2016 18:02:53 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=mailite.com; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=KDGYk1D8US8Te2e3plO+q4G9udo=; b=co64XD5RyFcCmoYxqfVy/ CCpVuRP8SXLUWzzwyiDnUUIMlqQIrXVcOoQLF0cRtXfuGeOQgHo/vxYt77FV0uIT uIGNtKIL5HtSU7NHAYoauaE98dOu0HrxRldcGCWTHlV3mvlZ1avUry4UL9MZ2Wx6 Ydw9uMCP/EQG9+EFiDH4eg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=smtpout; bh=KDGYk1D8US8Te2e3plO+q4G9u do=; b=bGvnzISPO4E1knnEA1ys4h+7I79Ldg5pbrSa8egR5fRNGMHg/6JelUsaW QxmM/n+CpR2jPiADcJt3nUTPhoQQry4S+6bDgdiQQka9+cI0UBVTqO21L9wYP+4+ yenkj3AH5OHK1jcVCtMEx4kqFRyeQYzgMSVjz472ef8F/ZuE9Y= X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 5EBB85224; Wed, 23 Nov 2016 18:02:53 -0500 (EST) Message-Id: <1479942173.509397.797525073.280E945D@webmail.messagingengine.com> From: Kay Parker MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-4bd131dc Date: Wed, 23 Nov 2016 15:02:53 -0800 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.4 (----) X-Mailman-Approved-At: Wed, 23 Nov 2016 18:06:17 -0500 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: -4.4 (----) ls -b (ls (GNU coreutils) 8.21): fails to escape '-' 1\ 2\ 3\ -\ 4\ -5\ 6 should be: 1\ 2\ 3\ \-\ 4\ \-5\ 6 -- Kay Parker kayparker@mailite.com -- http://www.fastmail.com - Does exactly what it says on the tin From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 23 18:27:57 2016 Received: (at control) by debbugs.gnu.org; 23 Nov 2016 23:27:57 +0000 Received: from localhost ([127.0.0.1]:39683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9gxI-0001Gq-TS for submit@debbugs.gnu.org; Wed, 23 Nov 2016 18:27:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9gxH-0001GX-4Z; Wed, 23 Nov 2016 18:27:55 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (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 6AD916611; Wed, 23 Nov 2016 23:27:49 +0000 (UTC) Received: from [10.3.116.185] (ovpn-116-185.phx2.redhat.com [10.3.116.185]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uANNRmgh017477; Wed, 23 Nov 2016 18:27:49 -0500 Subject: Re: bug#25009: ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21) To: Kay Parker , 25009-done@debbugs.gnu.org References: <1479942173.509397.797525073.280E945D@webmail.messagingengine.com> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Organization: Red Hat, Inc. Message-ID: Date: Wed, 23 Nov 2016 17:27:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1479942173.509397.797525073.280E945D@webmail.messagingengine.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2F68XQt3dRwOBkkig06bipmLOG1g0GQ9a" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 23 Nov 2016 23:27:49 +0000 (UTC) X-Spam-Score: -7.9 (-------) 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: -7.9 (-------) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --2F68XQt3dRwOBkkig06bipmLOG1g0GQ9a Content-Type: multipart/mixed; boundary="fD8bo143cNa7nT98eXcQJahNSQOknVmSe"; protected-headers="v1" From: Eric Blake To: Kay Parker , 25009-done@debbugs.gnu.org Message-ID: Subject: Re: bug#25009: ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21) References: <1479942173.509397.797525073.280E945D@webmail.messagingengine.com> In-Reply-To: <1479942173.509397.797525073.280E945D@webmail.messagingengine.com> --fD8bo143cNa7nT98eXcQJahNSQOknVmSe Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable tag 25009 notabug thanks On 11/23/2016 05:02 PM, Kay Parker wrote: > ls -b (ls (GNU coreutils) 8.21): fails to escape '-'=20 > 1\ 2\ 3\ -\ 4\ -5\ 6 > should be: 1\ 2\ 3\ \-\ 4\ \-5\ 6 Why? The documentation states: -b, --escape print C-style escapes for nongraphic charact= ers but - looks like a graphical character to me, so it doesn't need an escap= e. I don't see a problem here, so I'm marking this as not a bug; however, feel free to followup with more details, such as better justification for why - should be treated as a nongraphic character. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --fD8bo143cNa7nT98eXcQJahNSQOknVmSe-- --2F68XQt3dRwOBkkig06bipmLOG1g0GQ9a 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/ iQEcBAEBCAAGBQJYNiX0AAoJEKeha0olJ0NqaLQH/1DMWbGsqekPDAZX/EG+nmte fpmZNPeusqmm4YD/auJm0+ReB50KHJMuEM6Hl6t8CkRpfhDtjF2X2KopBcI5v6Yo PE3hQA+Se3WEj2JeZsAUpLCr00dxA8OODAAiz6W54q9L5ipjhKheqMPUbvyIqZHD MfIQu0YBHHBw7vDQfRVFPD/foYY/vdHFuoGcN/mIq95LkB8V/SDrAEFOHz4qhr+C vyhIuPsyyE6DxV7889jRu28PcacX9vVF05gnBqR71qNrIF5XLHwntYTzxsmDZxMc rcRFyLFPB/ivbvi79MsBIYspFSXx+CsveIy7iOi8FDgsr/CcJsP13l3F1gpk1JM= =nTiK -----END PGP SIGNATURE----- --2F68XQt3dRwOBkkig06bipmLOG1g0GQ9a-- From unknown Thu Jun 19 14:21:31 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Kay Parker Subject: bug#25009: closed (Re: bug#25009: ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21)) Message-ID: References: <1479942173.509397.797525073.280E945D@webmail.messagingengine.com> X-Gnu-PR-Message: they-closed 25009 X-Gnu-PR-Package: coreutils X-Gnu-PR-Keywords: notabug Reply-To: 25009@debbugs.gnu.org Date: Wed, 23 Nov 2016 23:28:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1479943682-4917-1" This is a multi-part message in MIME format... ------------=_1479943682-4917-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #25009: ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21) 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 25009@debbugs.gnu.org. --=20 25009: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D25009 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1479943682-4917-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 25009-done) by debbugs.gnu.org; 23 Nov 2016 23:27:57 +0000 Received: from localhost ([127.0.0.1]:39681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9gxI-0001Gn-Kh for submit@debbugs.gnu.org; Wed, 23 Nov 2016 18:27:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9gxH-0001GX-4Z; Wed, 23 Nov 2016 18:27:55 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (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 6AD916611; Wed, 23 Nov 2016 23:27:49 +0000 (UTC) Received: from [10.3.116.185] (ovpn-116-185.phx2.redhat.com [10.3.116.185]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uANNRmgh017477; Wed, 23 Nov 2016 18:27:49 -0500 Subject: Re: bug#25009: ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21) To: Kay Parker , 25009-done@debbugs.gnu.org References: <1479942173.509397.797525073.280E945D@webmail.messagingengine.com> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Organization: Red Hat, Inc. Message-ID: Date: Wed, 23 Nov 2016 17:27:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1479942173.509397.797525073.280E945D@webmail.messagingengine.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2F68XQt3dRwOBkkig06bipmLOG1g0GQ9a" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 23 Nov 2016 23:27:49 +0000 (UTC) X-Spam-Score: -7.9 (-------) X-Debbugs-Envelope-To: 25009-done 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: -7.9 (-------) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --2F68XQt3dRwOBkkig06bipmLOG1g0GQ9a Content-Type: multipart/mixed; boundary="fD8bo143cNa7nT98eXcQJahNSQOknVmSe"; protected-headers="v1" From: Eric Blake To: Kay Parker , 25009-done@debbugs.gnu.org Message-ID: Subject: Re: bug#25009: ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21) References: <1479942173.509397.797525073.280E945D@webmail.messagingengine.com> In-Reply-To: <1479942173.509397.797525073.280E945D@webmail.messagingengine.com> --fD8bo143cNa7nT98eXcQJahNSQOknVmSe Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable tag 25009 notabug thanks On 11/23/2016 05:02 PM, Kay Parker wrote: > ls -b (ls (GNU coreutils) 8.21): fails to escape '-'=20 > 1\ 2\ 3\ -\ 4\ -5\ 6 > should be: 1\ 2\ 3\ \-\ 4\ \-5\ 6 Why? The documentation states: -b, --escape print C-style escapes for nongraphic charact= ers but - looks like a graphical character to me, so it doesn't need an escap= e. I don't see a problem here, so I'm marking this as not a bug; however, feel free to followup with more details, such as better justification for why - should be treated as a nongraphic character. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --fD8bo143cNa7nT98eXcQJahNSQOknVmSe-- --2F68XQt3dRwOBkkig06bipmLOG1g0GQ9a 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/ iQEcBAEBCAAGBQJYNiX0AAoJEKeha0olJ0NqaLQH/1DMWbGsqekPDAZX/EG+nmte fpmZNPeusqmm4YD/auJm0+ReB50KHJMuEM6Hl6t8CkRpfhDtjF2X2KopBcI5v6Yo PE3hQA+Se3WEj2JeZsAUpLCr00dxA8OODAAiz6W54q9L5ipjhKheqMPUbvyIqZHD MfIQu0YBHHBw7vDQfRVFPD/foYY/vdHFuoGcN/mIq95LkB8V/SDrAEFOHz4qhr+C vyhIuPsyyE6DxV7889jRu28PcacX9vVF05gnBqR71qNrIF5XLHwntYTzxsmDZxMc rcRFyLFPB/ivbvi79MsBIYspFSXx+CsveIy7iOi8FDgsr/CcJsP13l3F1gpk1JM= =nTiK -----END PGP SIGNATURE----- --2F68XQt3dRwOBkkig06bipmLOG1g0GQ9a-- ------------=_1479943682-4917-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 23 Nov 2016 23:06:18 +0000 Received: from localhost ([127.0.0.1]:39674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9gcL-0000m5-Ly for submit@debbugs.gnu.org; Wed, 23 Nov 2016 18:06:17 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9gZG-0000h7-QU for submit@debbugs.gnu.org; Wed, 23 Nov 2016 18:03:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9gZA-0001ug-LN for submit@debbugs.gnu.org; Wed, 23 Nov 2016 18:03:01 -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.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59888) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c9gZA-0001uX-Hr for submit@debbugs.gnu.org; Wed, 23 Nov 2016 18:03:00 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9gZ9-0004qY-Gt for bug-coreutils@gnu.org; Wed, 23 Nov 2016 18:03:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9gZ6-0001s7-ET for bug-coreutils@gnu.org; Wed, 23 Nov 2016 18:02:59 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:44193) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c9gZ6-0001rQ-96 for bug-coreutils@gnu.org; Wed, 23 Nov 2016 18:02:56 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 8836221BE8 for ; Wed, 23 Nov 2016 18:02:53 -0500 (EST) Received: from web6 ([10.202.2.216]) by compute6.internal (MEProxy); Wed, 23 Nov 2016 18:02:53 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=mailite.com; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=KDGYk1D8US8Te2e3plO+q4G9udo=; b=co64XD5RyFcCmoYxqfVy/ CCpVuRP8SXLUWzzwyiDnUUIMlqQIrXVcOoQLF0cRtXfuGeOQgHo/vxYt77FV0uIT uIGNtKIL5HtSU7NHAYoauaE98dOu0HrxRldcGCWTHlV3mvlZ1avUry4UL9MZ2Wx6 Ydw9uMCP/EQG9+EFiDH4eg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=smtpout; bh=KDGYk1D8US8Te2e3plO+q4G9u do=; b=bGvnzISPO4E1knnEA1ys4h+7I79Ldg5pbrSa8egR5fRNGMHg/6JelUsaW QxmM/n+CpR2jPiADcJt3nUTPhoQQry4S+6bDgdiQQka9+cI0UBVTqO21L9wYP+4+ yenkj3AH5OHK1jcVCtMEx4kqFRyeQYzgMSVjz472ef8F/ZuE9Y= X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 5EBB85224; Wed, 23 Nov 2016 18:02:53 -0500 (EST) Message-Id: <1479942173.509397.797525073.280E945D@webmail.messagingengine.com> From: =?utf-8?Q?Kay=20Parker=20=09=20?= To: bug-coreutils@gnu.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-4bd131dc Date: Wed, 23 Nov 2016 15:02:53 -0800 Subject: ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 23 Nov 2016 18:06:17 -0500 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: -4.4 (----) ls -b (ls (GNU coreutils) 8.21): fails to escape '-' 1\ 2\ 3\ -\ 4\ -5\ 6 should be: 1\ 2\ 3\ \-\ 4\ \-5\ 6 -- Kay Parker kayparker@mailite.com -- http://www.fastmail.com - Does exactly what it says on the tin ------------=_1479943682-4917-1-- From unknown Thu Jun 19 14:21:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25009: ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21) Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 23 Nov 2016 23:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25009 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: notabug To: 25009@debbugs.gnu.org, eblake@redhat.com, kayparker@mailite.com Received: via spool by 25009-submit@debbugs.gnu.org id=B25009.147994406411908 (code B ref 25009); Wed, 23 Nov 2016 23:35:01 +0000 Received: (at 25009) by debbugs.gnu.org; 23 Nov 2016 23:34:24 +0000 Received: from localhost ([127.0.0.1]:39696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9h3Y-000360-KX for submit@debbugs.gnu.org; Wed, 23 Nov 2016 18:34:24 -0500 Received: from mail.magicbluesmoke.com ([82.195.144.49]:51618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9h3W-00035r-GM for 25009@debbugs.gnu.org; Wed, 23 Nov 2016 18:34:22 -0500 Received: from [192.168.1.80] (unknown [109.78.253.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.magicbluesmoke.com (Postfix) with ESMTPSA id F221D16F; Wed, 23 Nov 2016 23:34:20 +0000 (GMT) References: <1479942173.509397.797525073.280E945D@webmail.messagingengine.com> From: =?UTF-8?Q?P=C3=A1draig?= Brady Message-ID: <033cf275-eea5-8691-66e5-19c9dd297651@draigBrady.com> Date: Wed, 23 Nov 2016 23:34:20 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) 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: 0.0 (/) On 23/11/16 23:27, Eric Blake wrote: > tag 25009 notabug > thanks > > On 11/23/2016 05:02 PM, Kay Parker wrote: >> ls -b (ls (GNU coreutils) 8.21): fails to escape '-' >> 1\ 2\ 3\ -\ 4\ -5\ 6 >> should be: 1\ 2\ 3\ \-\ 4\ \-5\ 6 > > Why? The documentation states: > > -b, --escape print C-style escapes for nongraphic characters > > but - looks like a graphical character to me, so it doesn't need an escape. > > I don't see a problem here, so I'm marking this as not a bug; however, > feel free to followup with more details, such as better justification > for why - should be treated as a nongraphic character. Note you may be expecting ls to quote the file name so that it's subsequently usable as a parameter to a command. In that case --quoting=shell is more appropriate. From unknown Thu Jun 19 14:21:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25009: ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21) Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 23 Nov 2016 23:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25009 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: notabug To: 25009@debbugs.gnu.org, eblake@redhat.com, kayparker@mailite.com Received: via spool by 25009-submit@debbugs.gnu.org id=B25009.147994428112215 (code B ref 25009); Wed, 23 Nov 2016 23:38:01 +0000 Received: (at 25009) by debbugs.gnu.org; 23 Nov 2016 23:38:01 +0000 Received: from localhost ([127.0.0.1]:39701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9h73-0003Ax-4D for submit@debbugs.gnu.org; Wed, 23 Nov 2016 18:38:01 -0500 Received: from mail.magicbluesmoke.com ([82.195.144.49]:51634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9h72-0003Aq-9C for 25009@debbugs.gnu.org; Wed, 23 Nov 2016 18:38:00 -0500 Received: from [192.168.1.80] (unknown [109.78.253.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.magicbluesmoke.com (Postfix) with ESMTPSA id 8265216F; Wed, 23 Nov 2016 23:37:59 +0000 (GMT) References: <1479942173.509397.797525073.280E945D@webmail.messagingengine.com> <033cf275-eea5-8691-66e5-19c9dd297651@draigBrady.com> From: =?UTF-8?Q?P=C3=A1draig?= Brady Message-ID: <90ceba3f-3e70-a8c4-6514-5d13e50624ac@draigBrady.com> Date: Wed, 23 Nov 2016 23:37:59 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <033cf275-eea5-8691-66e5-19c9dd297651@draigBrady.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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: 0.0 (/) On 23/11/16 23:34, Pádraig Brady wrote: > On 23/11/16 23:27, Eric Blake wrote: >> tag 25009 notabug >> thanks >> >> On 11/23/2016 05:02 PM, Kay Parker wrote: >>> ls -b (ls (GNU coreutils) 8.21): fails to escape '-' >>> 1\ 2\ 3\ -\ 4\ -5\ 6 >>> should be: 1\ 2\ 3\ \-\ 4\ \-5\ 6 >> >> Why? The documentation states: >> >> -b, --escape print C-style escapes for nongraphic characters >> >> but - looks like a graphical character to me, so it doesn't need an escape. >> >> I don't see a problem here, so I'm marking this as not a bug; however, >> feel free to followup with more details, such as better justification >> for why - should be treated as a nongraphic character. > > Note you may be expecting ls to quote the file name > so that it's subsequently usable as a parameter to a command. > In that case --quoting=shell is more appropriate. Actually 1\ -\ 2 is fine as a command parameter (as the shell doesn't split it). Sorry for the noise