Package: coreutils
Version: 8.28-1
Severity: normal

Dear Maintainer,

When using -n -u, the "2b-bar" line gets dropped very unexpectedly. I don't
think this should be default behavior, at least I am now very wary and will
avoid sort -n -u whenever possible:

echo -e '1a-foo\n1b-bar\n2' | sort -n -u
   1a-foo
   2

but with uniq it works like expected:

echo -e '1a-foo\n1b-bar\n2' | sort -n | uniq
    1a-foo
    1b-bar
    2



-- System Information:
Debian Release: 9.0
  APT prefers stable
  APT policy: (950, 'stable'), (54, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (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
ii  libattr1     1:2.4.47-2
ii  libc6        2.24-9
ii  libselinux1  2.6-3

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information

Reply via email to