1
Fork 0
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:
Daniel Hofstetter 2024-12-20 10:02:36 +01:00
parent 37492b4815
commit cf8a81c6c2
2 changed files with 23 additions and 14 deletions

View file

@ -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]