From: Sylvestre Ledru Date: Fri, 20 Mar 2026 14:17:40 +0000 (+0100) Subject: tests: cut: add test for -z with NUL delimiter and -s flag X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4fd2de166a135b3f5d968d0870ec7fc7ad2d7b02;p=thirdparty%2Fcoreutils.git 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 --- diff --git a/tests/cut/cut.pl b/tests/cut/cut.pl index 7d1315beb3..aa44542198 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"},