mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
ls: --format will override the --dired option
Closes: #6488 Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
This commit is contained in:
parent
cd44a3d1fd
commit
4d705621e6
2 changed files with 26 additions and 2 deletions
|
@ -3969,6 +3969,28 @@ fn test_ls_dired_hyperlink() {
|
|||
.stdout_contains("//DIRED//");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_ls_dired_order_format() {
|
||||
let scene = TestScenario::new(util_name!());
|
||||
let at = &scene.fixtures;
|
||||
at.mkdir("dir");
|
||||
at.touch("dir/a");
|
||||
scene
|
||||
.ucmd()
|
||||
.arg("--dired")
|
||||
.arg("--format=vertical")
|
||||
.arg("-R")
|
||||
.succeeds()
|
||||
.stdout_does_not_contain("//DIRED//");
|
||||
scene
|
||||
.ucmd()
|
||||
.arg("--format=vertical")
|
||||
.arg("--dired")
|
||||
.arg("-R")
|
||||
.succeeds()
|
||||
.stdout_contains("//DIRED//");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_ls_dired_and_zero_are_incompatible() {
|
||||
let scene = TestScenario::new(util_name!());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue