1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-18 19:21:09 +00:00
uutils-coreutils/src/uu/split
Jeffrey Finkelstein 071e72ffc8 split: fix bug with large arguments to -C
Fix the behavior of `split -C` when given large arguments. Before this
commit, bytes were being greedily assigned to a chunk too aggressively,
leading to a situation where a split happened in the middle of a line
even though the entire line could have fit within the next chunk. This
was appearing for large arguments to `-C` and long lines that extended
beyond the size of the read buffer. This commit fixes the behavior.

Fixes #7026
2025-01-13 09:36:48 +01:00
..
src split: fix bug with large arguments to -C 2025-01-13 09:36:48 +01:00
BENCHMARKING.md parent 9d5dc500e6 2023-03-04 18:43:40 +01:00
Cargo.toml New release 2025-01-11 14:01:27 +01:00
LICENSE Include license text in all published crates 2022-03-05 21:21:46 +01:00
README.md parent 9d5dc500e6 2023-03-04 18:43:40 +01:00
split.md split: implementing separator option (#5331) 2023-10-03 00:42:46 +02:00

Rudimentary "split" Implementation

Missing Features

Flags

  • --verbose - created file printing is implemented, don't know if there is anything else

Possible Optimizations

  • Use slice ([u8]) directly as the control.current_line.