mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
sort: prevent -o/--output to be specified multiple times
This commit is contained in:
parent
04e7de1546
commit
3b4226c48c
2 changed files with 23 additions and 1 deletions
|
@ -1345,3 +1345,12 @@ fn test_failed_write_is_reported() {
|
|||
.fails()
|
||||
.stderr_is("sort: write failed: 'standard output': No space left on device\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
// Test for GNU tests/sort/sort.pl "o2"
|
||||
fn test_multiple_output_files() {
|
||||
new_ucmd!()
|
||||
.args(&["-o", "foo", "-o", "bar"])
|
||||
.fails_with_code(2)
|
||||
.stderr_is("sort: multiple output files specified\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue