ls: unquoted names should be indented with a space if there is a quoted name · Issue #5632 · uutils/coreutils · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GNU ls indents unquoted names with a space if there is a quoted name:
$ touch a 'sp ace'
$ ls a 'sp ace'
a 'sp ace'
$ ls -l a 'sp ace'
-rw-r--r-- 1 dho dho 0 Dec 10 16:38 a
-rw-r--r-- 1 dho dho 0 Dec 10 16:38 'sp ace'
uutils ls doesn't do such an indentation:
$ touch a 'sp ace'
$ cargo run ls a 'sp ace'
a 'sp ace'
$ cargo run ls -l a 'sp ace'
-rw-r--r-- 1 dho dho 0 Dec 10 16:38 a
-rw-r--r-- 1 dho dho 0 Dec 10 16:38 'sp ace'
The text was updated successfully, but these errors were encountered:
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:The text was updated successfully, but these errors were encountered: