mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
ls: Fix minor output mismatch
When a single directory is passed to ls in recursive mode, uutils ls won't print the directory name ====================== GNU ls: z: ====================== ====================== uutils ls: ====================== This commit fixes this minor inconsistency and adds corresponding test.
This commit is contained in:
parent
4d51e16140
commit
898d325aea
2 changed files with 7 additions and 1 deletions
|
@ -899,6 +899,12 @@ fn test_ls_recursive() {
|
|||
|
||||
scene.ucmd().arg("a").succeeds();
|
||||
scene.ucmd().arg("a/a").succeeds();
|
||||
scene
|
||||
.ucmd()
|
||||
.arg("z")
|
||||
.arg("-R")
|
||||
.succeeds()
|
||||
.stdout_contains(&"z:");
|
||||
let result = scene
|
||||
.ucmd()
|
||||
.arg("--color=never")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue