bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Eric Blake
Subject: bug#25009: ls -b fails to escape '-' c-style (ls (GNU coreutils) 8.21)
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

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]