Bug#992666: /usr/bin/cut: -n ignored => mangles output ‒ more succinct test data

2021-08-28 Thread наб
Hi! A better and more exhaustive test dataset can be as simple as: -- >8 -- for i in $(seq 10); do echo "-$i;$((i+1))-" | paste - \ <(printf 'яйцо\nЯЙЦО' | cut -nb -$i) \ <(printf 'яйцо\nЯЙЦО' | cut -nb $((i+1))-) done -- >8 -- With a correct implementation, this yields: -- >8 -- -1;2-

Bug#992666: /usr/bin/cut: -n ignored => mangles output

2021-08-21 Thread наб
Package: coreutils Version: 8.32-4 Severity: normal File: /usr/bin/cut Dear Maintainer, POSIX.1-2008 says: -- >8 -- -n Do not split characters. When specified with the -b option, each element in list of the form low-high (-separated numbers) shall be modified as follows: