mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2026-01-18 19:21:09 +00:00
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 |
||
|---|---|---|
| .. | ||
| src | ||
| BENCHMARKING.md | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
| split.md | ||
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 thecontrol.current_line.