mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
df: allow multiple occurrences of --output arg
Allow multiple occurrences of the `--output` argument. For example, $ df --output=source --output=target | head -n1 Filesystem Mounted on
This commit is contained in:
parent
d5d6bc3050
commit
a1f300e8a7
2 changed files with 13 additions and 0 deletions
|
@ -222,6 +222,18 @@ fn test_output_selects_columns() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_output_multiple_occurrences() {
|
||||
let output = new_ucmd!()
|
||||
.args(&["--output=source", "--output=target"])
|
||||
.succeeds()
|
||||
.stdout_move_str();
|
||||
assert_eq!(
|
||||
output.lines().next().unwrap(),
|
||||
"Filesystem Mounted on "
|
||||
);
|
||||
}
|
||||
|
||||
// TODO Fix the spacing.
|
||||
#[test]
|
||||
fn test_output_file_all_filesystems() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue