split --line-bytes=N (-C N): don't create an empty file.
commit395fcee97a358fdfe2d6ca3bc2544cb008fd40f6
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Apr 2007 22:21:25 +0000 (12 00:21 +0200)
committerJim Meyering <jim@meyering.net>
Wed, 11 Apr 2007 22:21:25 +0000 (12 00:21 +0200)
treee967bcf7d0781bf5bc8e82e3864639f71dca79b2
parentf839bfad730f49d162213fe313b47319bd74b9d3
split --line-bytes=N (-C N): don't create an empty file.
* src/split.c (line_bytes_split): Don't create an empty line
afterwards if the last buffer happens to be exactly full.
* tests/misc/split-fail: Add a test case for this.
* NEWS: mention this.
ChangeLog
NEWS
src/split.c
tests/misc/split-fail