GNU bug report logs - #21880
Possible bug in sort --check --key

Previous Next

Package: coreutils;

Reported by: Alexander Kindyakov <akindyakov <at> gmail.com>

Date: Wed, 11 Nov 2015 18:52:02 UTC

Severity: normal

Tags: notabug

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

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alexander Kindyakov <akindyakov <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Possible bug in sort --check --key
Date: Wed, 11 Nov 2015 21:50:14 +0300
Hello!

In sort man page nothing told about working sort --check with '--key' 
option. IMHO this behaviour is strange:

This case is succeeded:

 $ echo -e '1\t2\n1\t1' | LC_ALL=C sort --key=1b,1 --check --stable 
--field-separator=$'\t'

But this (without option '--stable') is failed:

$ echo -e '1\t2\n1\t1' | LC_ALL=C sort --key=1b,1 --check 
--field-separator=$'\t'
sort: -:2: disorder: 1  1

It seems to me both of situation is equal with relation of line key, why 
does the output is different?

Sincerely yours, Alexander K




This bug report was last modified 9 years and 272 days ago.

Previous Next


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