Merge pull request #603 from brian-pane/eof

Ignore -E/-e flag when a delimiter is specified
This commit is contained in:
Brian Pane
2025-12-07 10:54:27 +00:00
committed by GitHub
parent 1a65b7634a
commit c5c5a16700
2 changed files with 47 additions and 21 deletions
+11
View File
@@ -572,3 +572,14 @@ fn xargs_eof() {
.stdout(predicate::str::diff("ab\n"));
}
}
#[test]
fn xargs_eof_with_delimiter() {
cargo_bin_cmd!("xargs")
.args(["-0", "-Ecd"])
.write_stdin("ab\0cd\0ef")
.assert()
.success()
.stderr(predicate::str::is_empty())
.stdout(predicate::str::diff("ab cd ef\n"));
}