mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
cut: fix overriding of -d=
This commit is contained in:
parent
37492b4815
commit
cf8a81c6c2
2 changed files with 23 additions and 14 deletions
|
@ -299,9 +299,15 @@ fn test_newline_as_delimiter() {
|
|||
fn test_multiple_delimiters() {
|
||||
new_ucmd!()
|
||||
.args(&["-f2", "-d:", "-d="])
|
||||
.pipe_in("a=b\n")
|
||||
.pipe_in("a:=b\n")
|
||||
.succeeds()
|
||||
.stdout_only("b\n");
|
||||
|
||||
new_ucmd!()
|
||||
.args(&["-f2", "-d=", "-d:"])
|
||||
.pipe_in("a:=b\n")
|
||||
.succeeds()
|
||||
.stdout_only("=b\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue