mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
fix(ls): place dot dirs on top in version sorting
Also fixes the fact that version sorting had incorrect edge cases due to wrong name passing.
This commit is contained in:
committed by
Daniel Hofstetter
parent
e4a2ab3955
commit
f774940451
@@ -3661,7 +3661,7 @@ fn test_ls_version_sort() {
|
||||
);
|
||||
|
||||
let result = scene.ucmd().arg("-a1v").succeeds();
|
||||
expected.insert(expected.len() - 1, "..");
|
||||
expected.insert(0, "..");
|
||||
expected.insert(0, ".");
|
||||
assert_eq!(
|
||||
result.stdout_str().split('\n').collect::<Vec<_>>(),
|
||||
|
||||
Reference in New Issue
Block a user