-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
The GNU ls ignores the leading period when sorting by name. However, hidden files still get sorted before non-hidden files with the same name, so .a always appears before a.
Here is an example:
$ touch a b .a .b
$ ls -A # GNU
.a a .b b
$ uu-ls -A # current uutils
.a .b a bCode is here:
https://github.com/uutils/coreutils/blob/master/src/uu/ls/src/ls.rs
Tests are here:
https://github.com/uutils/coreutils/blob/master/tests/by-util/test_ls.rs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels