mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
abcdcdca53
`pr -e0` on input containing a tab aborted with a remainder-by-zero panic (`chunk.len() % expand_options.width` in `apply_expand_tab`). The `-e[char][width]` parser accepted a width of `0` — and a negative width via e.g. `-eX-5` — without validation, so the zero/negative reached the chunk arithmetic. Reject `width <= 0` while parsing `-e`, emitting the same invalid-argument error GNU produces (`pr: '-e' extra characters or invalid number in the argument: '0'`, exit 1) instead of crashing.