GNU bug report logs - #14226
Sort -c takes in account fields that were outside sorting scope

Previous Next

Package: coreutils;

Reported by: Camion SPAM <camion_spam-gnubugs <at> yahoo.fr>

Date: Thu, 18 Apr 2013 17:11:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Camion SPAM <camion_spam-gnubugs <at> yahoo.fr>
To: 14226 <at> debbugs.gnu.org
Subject: bug#14226: Sort -c takes in account fields that were outside sorting scope
Date: Thu, 18 Apr 2013 16:04:37 +0100 (BST)
[Message part 1 (text/plain, inline)]
The following commands report an error on equals lines because field outside sorting scope were not sorted

$ cat <<'.' |
> AAA AAA
> BBB BBB
> ZZZ CCC
> DDD DDD
> BBC EEE
> BBD EEE
> BBC EEE
> BBE EEE
> CCC FFF
> DDD GGG
> EEE HHH
> .
> LANG=C sort -k 2,2 -c
sort: -:7: disorder: BBC EEE
[Message part 2 (text/html, inline)]

This bug report was last modified 12 years and 112 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.