summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2026-03-20 15:17:40 +0100
committerPádraig Brady <P@draigBrady.com>2026-03-23 12:11:49 +0000
commit4fd2de166a135b3f5d968d0870ec7fc7ad2d7b02 (patch)
tree37058bbe6d1652dbcf6b8df9fb8b784aa329c996
parent939def75f3f57179aef79a60eacb4b035faaa5ba (diff)
downloadcoreutils-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-xtests/cut/cut.pl1
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"},