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-
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:
2 matches
Mail list logo