diff options
Diffstat (limited to 'testsuite/cut.tests')
-rwxr-xr-x | testsuite/cut.tests | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/cut.tests b/testsuite/cut.tests index 2458c019c..0b401bc00 100755 --- a/testsuite/cut.tests +++ b/testsuite/cut.tests | |||
@@ -65,6 +65,15 @@ testing "cut with -d -f( ) -s" "cut -d' ' -f3 -s input && echo yes" "yes\n" "$in | |||
65 | testing "cut with -d -f(a) -s" "cut -da -f3 -s input" "n\nsium:Jim\n\ncion:Ed\n" "$input" "" | 65 | testing "cut with -d -f(a) -s" "cut -da -f3 -s input" "n\nsium:Jim\n\ncion:Ed\n" "$input" "" |
66 | testing "cut with -d -f(a) -s -n" "cut -da -f3 -s -n input" "n\nsium:Jim\n\ncion:Ed\n" "$input" "" | 66 | testing "cut with -d -f(a) -s -n" "cut -da -f3 -s -n input" "n\nsium:Jim\n\ncion:Ed\n" "$input" "" |
67 | 67 | ||
68 | input="\ | ||
69 | |||
70 | foo bar baz | ||
71 | |||
72 | bing bong boop | ||
73 | |||
74 | " | ||
75 | testing "cut with -d -s omits blank lines" "cut -d' ' -f2 -s input" "bar\nbong\n" "$input" "" | ||
76 | |||
68 | # substitute for awk | 77 | # substitute for awk |
69 | optional FEATURE_CUT_REGEX | 78 | optional FEATURE_CUT_REGEX |
70 | testing "cut -DF" "cut -DF 2,7,5" \ | 79 | testing "cut -DF" "cut -DF 2,7,5" \ |