split: split more evenly with -n
commitfb6fc7f3ce6b0b70a5df7f605e71c4f8541e256b
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 4 Mar 2023 19:41:03 +0000 (4 11:41 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 4 Mar 2023 22:49:45 +0000 (4 14:49 -0800)
tree24bfc3384bd255f4048f3a9c25487d770eb51c99
parent0d997e18b99e87fa2f2ca96f3611ada87758c020
split: split more evenly with -n

* src/split.c (bytes_split): New arg REM_BYTES.
Use this to split more evenly.  All callers changed.
(lines_chunk_split, bytes_chunk_extract):
Be consistent with new byte_split.
* tests/split/b-chunk.sh, tests/split/l-chunk.sh: Test new behavior.
NEWS
doc/coreutils.texi
src/split.c
tests/split/b-chunk.sh
tests/split/l-chunk.sh