Subject: bug#25009: closed (Re: bug#25009: ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21))

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 23 Nov 2016 23:28:02 +0000

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 [email-masked].

-- 
25009: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25009
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#25009: ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21)
From: Eric Blake <[email-masked]>
To: Kay Parker <[email-masked]>, [email-masked]
Date: Wed, 23 Nov 2016 17:27:48 -0600
List-Id: <debbugs-submit.debbugs.gnu.org>

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

Subject: ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21)
From: Kay Parker <[email-masked]>
To: [email-masked]
Date: Wed, 23 Nov 2016 15:02:53 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

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       
  [email-masked]

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