1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

ls: when -aA are provided, the order matters

This commit is contained in:
Sylvestre Ledru 2022-03-20 19:58:21 +01:00
parent 04b219bdef
commit af8726af43
2 changed files with 24 additions and 0 deletions

View file

@ -2869,3 +2869,25 @@ fn test_ls_context_format() {
);
}
}
#[test]
#[allow(non_snake_case)]
fn test_ls_a_A() {
let scene = TestScenario::new(util_name!());
scene
.ucmd()
.arg("-A")
.arg("-a")
.succeeds()
.stdout_contains(".")
.stdout_contains("..");
scene
.ucmd()
.arg("-a")
.arg("-A")
.succeeds()
.stdout_does_not_contain(".")
.stdout_does_not_contain("..");
}