diff options
| author | Sylvestre Ledru <sylvestre@debian.org> | 2026-03-20 15:17:40 +0100 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2026-03-23 12:11:49 +0000 |
| commit | 4fd2de166a135b3f5d968d0870ec7fc7ad2d7b02 (patch) | |
| tree | 37058bbe6d1652dbcf6b8df9fb8b784aa329c996 | |
| parent | 939def75f3f57179aef79a60eacb4b035faaa5ba (diff) | |
| download | coreutils-4fd2de166a135b3f5d968d0870ec7fc7ad2d7b02.tar.gz coreutils-4fd2de166a135b3f5d968d0870ec7fc7ad2d7b02.zip | |
tests: cut: add test for -z with NUL delimiter and -s flag
* tests/cut/cut.pl (zerot-7): New test.
Identified https://github.com/uutils/coreutils/pull/11394
https://github.com/coreutils/coreutils/pull/226
| -rwxr-xr-x | tests/cut/cut.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/cut/cut.pl b/tests/cut/cut.pl index 7d1315beb..aa4454219 100755 --- a/tests/cut/cut.pl +++ b/tests/cut/cut.pl @@ -171,6 +171,7 @@ my @Tests = ['zerot-4', '-z -d:', '-f1', {IN=>"a:1\0b:2"}, {OUT=>"a\0b\0"}], ['zerot-5', '-z -d:', '-f1-', {IN=>"a1:\0:"}, {OUT=>"a1:\0:\0"}], ['zerot-6', "-z -d ''", '-f1,2', '--ou=:', {IN=>"a\0b\0"}, {OUT=>"a:b\0"}], + ['zerot-7', "-z -d '' -s", '-f1', {IN=>"abc"}, {OUT=>""}], # New functionality: ['out-delim1', '-c1-3,5-', '--output-d=:', {IN=>"abcdefg\n"}, |
