summaryrefslogtreecommitdiff
path: root/tests/local.mk
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2013-03-06 15:53:16 -0500
committerPádraig Brady <P@draigBrady.com>2013-04-10 14:34:52 +0100
commit4114c93af398d7aecb5eb253f90d9b4cc0785643 (patch)
treee12c863d7a3ac08a1abec7c8fc8a4be6991fde9c /tests/local.mk
parentec02161aefab06bec919d10396900ce6fe87390d (diff)
downloadcoreutils-4114c93af398d7aecb5eb253f90d9b4cc0785643.tar.xz
csplit: add the --suppress-matched option
With --suppress-matched, the lines that match the pattern will not be printed in the output files. I.E. the first line from the second and subsequent splits will be suppressed. * src/csplit.c: process_regexp(),process_line_count(): Don't output the matched lines. Since csplit includes "up to but not including" matched lines in each split, the first line (in the next group) is the matched line - so just skip it. main(): Handle new option. usage(): Mention new option. * doc/coreutils.texi (csplit invocation): Mention new option, examples. * tests/misc/csplit-suppress-matched.pl: New test script. * tests/local.mk: Reference the new test. * NEWS: Mention new feature.
Diffstat (limited to 'tests/local.mk')
-rw-r--r--tests/local.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/local.mk b/tests/local.mk
index dc87ef491..e3a72ab3a 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -260,6 +260,7 @@ all_tests = \
tests/misc/csplit.sh \
tests/misc/csplit-1000.sh \
tests/misc/csplit-heap.sh \
+ tests/misc/csplit-suppress-matched.pl \
tests/misc/date-sec.sh \
tests/misc/dircolors.pl \
tests/misc/dirname.pl \