Package: coreutils Version: 8.26-3 Severity: important Tags: upstream Hi @all,
sort produces wrong output with combined '-u' and '-n' switch, if input lines have an preceding '\' character. # echo -e "\2\n\1\n\2" | sort -u -n expected output: \1 \2 actual output: \2 I tried it with different local settings, all produces the same output. # echo -e "\2\n\1\n\2" | sort -u | sort -n and # echo -e "\2\n\1\n\2" | sort -n | sort -u procude an correct output. Seems that the '\' may be interpreted as escape sequence somewhere. Regards Michael -- System Information: Debian Release: 9.0 APT prefers mike APT policy: (600, 'mike'), (504, 'unstable'), (503, 'testing'), (502, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores) Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages coreutils depends on: ii libacl1 2.2.52-3+b1 ii libattr1 1:2.4.47-2+b2 ii libc6 2.24-10 ii libselinux1 2.6-3+b1 coreutils recommends no packages. coreutils suggests no packages. -- no debconf information