[Bug 219024] [patch] csplit leaves last matching pattern at end of file N-1 as well as in file N

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 8 15:52:23 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219024

--- Comment #5 from commit-hook at freebsd.org ---
A commit references this bug:

Author: cem
Date: Mon May  8 15:51:29 UTC 2017
New revision: 317942
URL: https://svnweb.freebsd.org/changeset/base/317942

Log:
  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>

Changes:
  head/usr.bin/csplit/Makefile
  head/usr.bin/csplit/csplit.c
  head/usr.bin/csplit/tests/
  head/usr.bin/csplit/tests/Makefile
  head/usr.bin/csplit/tests/csplit_test.sh

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list