GNU bug report logs - #76290
"sort -u" vs "sort -h -u": possible bug

Previous Next

Package: coreutils;

Reported by: Rupert Gallagher <ruga <at> protonmail.com>

Date: Fri, 14 Feb 2025 17:01:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Rainer Canavan <coreutils <at> canavan.de>
Cc: 76290 <at> debbugs.gnu.org
Subject: bug#76290: "sort -u" vs "sort -h -u": possible bug
Date: Wed, 19 Feb 2025 13:21:14 -0800
[Message part 1 (text/plain, inline)]
On 2/19/25 11:15, Rainer Canavan wrote:
> -u, --unique
>               with -c, check for strict ordering; without -c, output 
> only the first of an equal run
> 
> does not provide any explanation what 'equal' or 'run' may mean. Maybe 
> add something like "where equality is assessed only based on the keys 
> and rules used to sort the output".

Thanks for the suggestion. Although that's a bit long for "sort --help", 
I take the point that equality comparison could be mentioned and 
installed the attached to try to make things clearer without adding so 
much length.
[0001-sort-improve-u-brief-doc.patch (text/x-patch, attachment)]

This bug report was last modified 92 days ago.

Previous Next


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