freebsd-skq/usr.bin/csplit
cem cbb9f3e660 csplit(1): Fix extraneous output in edge case
When the input to csplit contains fewer lines than the number of matches
specified, extra output was mistakenly included in some output files.

Fix the bug and add a simple ATF regression test.

PR:		219024
Submitted by:	J.R. Oldroyd <fbsd at opal.com>
2017-05-08 15:51:29 +00:00
..
tests csplit(1): Fix extraneous output in edge case 2017-05-08 15:51:29 +00:00
csplit.1
csplit.c csplit(1): Fix extraneous output in edge case 2017-05-08 15:51:29 +00:00
Makefile csplit(1): Fix extraneous output in edge case 2017-05-08 15:51:29 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00