-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ls
: ignore leading period when sorting by name
#2101
Comments
Just verifying, all this would take is changing the |
@ricardoaiglesias If I understand you correctly I think that would lead to our current sorting right? In the example above, this would lead to a bucket with One way this might be implemented is to sort by a tuple of type |
Oh sorry. I misinterpreted the examples you gave. |
Nice! Looking forward to it! |
PR Here: #2112 |
This issue can be closed. |
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 beforea
.Here is an example:
Code 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
The text was updated successfully, but these errors were encountered: