1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-15 03:26:18 +00:00

Merge pull request #5833 from sylvestre/cut-multiple

cut: allow the same option to be passed multiple times
This commit is contained in:
Daniel Hofstetter 2024-01-13 16:58:04 +01:00 committed by GitHub
commit ac27b6c4b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -255,3 +255,13 @@ fn test_equal_as_delimiter3() {
.succeeds()
.stdout_only_bytes("abZcd\n");
}
#[test]
fn test_multiple() {
let result = new_ucmd!()
.args(&["-f2", "-d:", "-d="])
.pipe_in("a=b\n")
.succeeds();
assert_eq!(result.stdout_str(), "b\n");
assert_eq!(result.stderr_str(), "");
}