1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-14 16:01:57 +02:00

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
This commit is contained in:
Sylvestre Ledru
2026-03-20 15:17:40 +01:00
committed by Pádraig Brady
parent 939def75f3
commit 4fd2de166a

View File

@@ -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"},