From: Sylvestre Ledru Date: Wed, 4 Mar 2026 10:57:10 +0000 (+0100) Subject: tests: cut: add test case for newline delimiter with -s flag X-Git-Tag: v9.11~198 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8fe6d9298909c666e7dc56dc026b589522297e37;p=thirdparty%2Fcoreutils.git tests: cut: add test case for newline delimiter with -s flag * tests/cut/cut.pl: Add a new test case. https://github.com/coreutils/coreutils/pull/211 --- diff --git a/tests/cut/cut.pl b/tests/cut/cut.pl index 22f40b1024..7d1315beb3 100755 --- a/tests/cut/cut.pl +++ b/tests/cut/cut.pl @@ -161,6 +161,9 @@ my @Tests = ['newline-23', "-d'\n'", '-f1-', '--ou=:', {IN=>"a\nb\n"}, {OUT=>"a:b\n"}], ['newline-24', "-d'\n'", '-f1,2', '--ou=:', {IN=>"a\nb\n"}, {OUT=>"a:b\n"}], + # input without delimiter and -s flag + ['newline-25', '-s', "-d'\n'", '-f1', {IN=>"abc"}, {OUT=>""}], + # --zero-terminated ['zerot-1', "-z", '-c1', {IN=>"ab\0cd\0"}, {OUT=>"a\0c\0"}], ['zerot-2', "-z", '-c1', {IN=>"ab\0cd"}, {OUT=>"a\0c\0"}],