1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-02 05:57:46 +00:00

Merge pull request #2517 from jfinkels/tac-null-separator

tac: support null separator (-s "")
This commit is contained in:
Sylvestre Ledru 2021-08-03 09:22:50 +02:00 committed by GitHub
commit 26cc2ed440
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 10 deletions

View file

@ -73,3 +73,12 @@ fn test_invalid_input() {
fn test_no_line_separators() {
new_ucmd!().pipe_in("a").succeeds().stdout_is("a");
}
#[test]
fn test_null_separator() {
new_ucmd!()
.args(&["-s", ""])
.pipe_in("a\0b\0")
.succeeds()
.stdout_is("b\0a\0");
}