Closed cakebaker closed 10 months ago
Quoting flag for shell also didn't work.
$ ./coreutils ls --quoting-style=literal a 'sp ace'
a sp ace
$ ./coreutils ls --quoting-style=shell a 'sp ace'
a 'sp ace'
$ ls --quoting-style=literal a 'sp ace'
a sp ace
$ ls --quoting-style=shell a 'sp ace'
a 'sp ace'
I wrote some code which patches this inconsistency but I am unsure how to write unit tests for it considering that ls formats differently if the output is directed to stdout.
GNU
ls
indents unquoted names with a space if there is a quoted name:uutils
ls
doesn't do such an indentation: