mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-01 21:47:46 +00:00
Merge pull request #2461 from miDeb/sort/check-no-out
sort: disable -o with -C and -c
This commit is contained in:
commit
7a0a7aecc4
2 changed files with 16 additions and 0 deletions
|
@ -937,3 +937,17 @@ fn test_sigpipe_panic() {
|
|||
Ok(String::new())
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_conflict_check_out() {
|
||||
let check_flags = ["-c=silent", "-c=quiet", "-c=diagnose-first", "-c", "-C"];
|
||||
for check_flag in &check_flags {
|
||||
new_ucmd!()
|
||||
.arg(check_flag)
|
||||
.arg("-o=/dev/null")
|
||||
.fails()
|
||||
.stderr_contains(
|
||||
"error: The argument '--output <FILENAME>' cannot be used with '--check",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue