bug-coreutils
[Top][All Lists]
Advanced

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

bug#24225: ls doesn't quote newlines with -Q properly


From: E. Choroba
Subject: bug#24225: ls doesn't quote newlines with -Q properly
Date: Sun, 14 Aug 2016 19:13:33 +0200 (CEST)
User-agent: Alpine 2.11 (LSU 23 2013-08-11)

Filename containing a newline is not listed in a way reusable by shell regardless of the --quoting-style:

$ touch a$'\n'b
$ for s in literal shell shell-always c c-maybe escape locale clocale ; do
      ls -Q a?b --quoting-style=$s
  done
a?b
'a?b'
'a?b'
"a\nb"
"a\nb"
a\nb
‘a\nb’
‘a\nb’

I'd expect something like $'a\nb' (might be bash specific) or 'a
b' (i.e. containing the actual newline) or something.

Versions:

bash 4.2.53(1)-release
ls (GNU coreutils) 8.23
system: OpenSUSE 13.2 x86_64

Reference:
http://stackoverflow.com/q/38938218/1030675

Ch.


reply via email to

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