1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 20:47:46 +00:00

dircolors: accept repeated flags

This commit is contained in:
Ben Wiederhake 2024-03-30 15:30:11 +01:00 committed by Sylvestre Ledru
parent c99e1c6813
commit 8e794d0654
2 changed files with 8 additions and 0 deletions

View file

@ -246,3 +246,10 @@ fn test_dircolors_for_dir_as_file() {
"dircolors: expected file, got directory '/'",
);
}
#[test]
fn test_repeated() {
for arg in ["-b", "-c", "--print-database", "--print-ls-colors"] {
new_ucmd!().arg(arg).arg(arg).succeeds().no_stderr();
}
}