1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

Merge pull request #5446 from cakebaker/ls_try_get_matches_from

ls: use try_get_matches_from instead of get_matches_from
This commit is contained in:
Terts Diepraam 2023-10-25 11:25:40 +02:00 committed by GitHub
commit 96d0830952
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 7 deletions

View file

@ -3569,6 +3569,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!());