diff options
Diffstat (limited to 'testsuite/cut.tests')
-rwxr-xr-x | testsuite/cut.tests | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/cut.tests b/testsuite/cut.tests index 8da390cd7..52d05fde3 100755 --- a/testsuite/cut.tests +++ b/testsuite/cut.tests | |||
@@ -142,4 +142,16 @@ testing "cut -dNEWLINE --output-delimiter EMPTY_INPUT" \ | |||
142 | "" \ | 142 | "" \ |
143 | "" "" | 143 | "" "" |
144 | 144 | ||
145 | # This seems to work as if delimiter is never found. | ||
146 | # We test here that -d '' does *not* operate as if there was no -d | ||
147 | # and delimiter has defaulted to TAB: | ||
148 | testing "cut -d EMPTY" \ | ||
149 | "cut -d '' -f2-" \ | ||
150 | "1 2\t3 4 5\n" \ | ||
151 | "" "1 2\t3 4 5\n" | ||
152 | testing "cut -d EMPTY -s" \ | ||
153 | "cut -d '' -f2- -s" \ | ||
154 | "" \ | ||
155 | "" "1 2\t3 4 5\n" | ||
156 | |||
145 | exit $FAILCOUNT | 157 | exit $FAILCOUNT |