GNU bug report logs - #25009
ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21)

Previous Next

Package: coreutils;

Reported by: Kay Parker <kayparker <at> mailite.com>

Date: Wed, 23 Nov 2016 23:07:01 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: Eric Blake <eblake <at> redhat.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#25009: closed (ls -b fails to escape '-' c-style (ls (GNU
 coreutils) 8.21))
Date: Wed, 23 Nov 2016 23:28:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 23 Nov 2016 17:27:48 -0600
with message-id <ddcc04b2-872d-3543-4277-3cede11185fd <at> redhat.com>
and subject line Re: bug#25009: ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21)
has caused the debbugs.gnu.org bug report #25009,
regarding ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21)
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
25009: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25009
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Kay Parker 	  <kayparker <at> mailite.com>
To: bug-coreutils <at> gnu.org
Subject: ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21)
Date: Wed, 23 Nov 2016 15:02:53 -0800
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 <at> mailite.com

-- 
http://www.fastmail.com - Does exactly what it says on the tin



[Message part 3 (message/rfc822, inline)]
From: Eric Blake <eblake <at> redhat.com>
To: Kay Parker <kayparker <at> mailite.com>, 25009-done <at> debbugs.gnu.org
Subject: Re: bug#25009: ls -b fails to escape '-' c-style (ls (GNU coreutils)
 8.21)
Date: Wed, 23 Nov 2016 17:27:48 -0600
[Message part 4 (text/plain, inline)]
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.

-- 
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 8 years and 179 days ago.

Previous Next


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