mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
ls: return exit code 2 for -l --dired --zero
This commit is contained in:
parent
d7b7dfeb16
commit
fd18d2686f
2 changed files with 26 additions and 6 deletions
|
@ -3564,6 +3564,20 @@ fn test_ls_dired_incompatible() {
|
|||
.stderr_contains("--dired requires --format=long");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_ls_dired_and_zero_are_incompatible() {
|
||||
let scene = TestScenario::new(util_name!());
|
||||
|
||||
scene
|
||||
.ucmd()
|
||||
.arg("--dired")
|
||||
.arg("-l")
|
||||
.arg("--zero")
|
||||
.fails()
|
||||
.code_is(2)
|
||||
.stderr_contains("--dired and --zero are incompatible");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_ls_dired_recursive() {
|
||||
let scene = TestScenario::new(util_name!());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue