GNU bug report logs - #35636
bug report sort command

Previous Next

Package: coreutils;

Reported by: Michele Liberi <mliberi <at> gmail.com>

Date: Wed, 8 May 2019 14:29: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: Michele Liberi <mliberi <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: bug report sort command
Date: Wed, 8 May 2019 10:35:01 +0200
[Message part 1 (text/plain, inline)]
I verified the following bug is there in:

   - sort (GNU coreutils) 8.21
   - sort (GNU coreutils) 8.22
   - sort (GNU coreutils) 8.23

*Input file:*
# cat sort.in
1|a|x
2|b|x
3|aa|x
4|bb|x
5|c|x


*shell command and output:*
# sort -t'|' -k2 <sort.in
3|aa|x
1|a|x
4|bb|x
2|b|x
5|c|x

*I expected that key "a" to come before key "aa" and key "b" to come before
key "bb".*
[Message part 2 (text/html, inline)]

This bug report was last modified 6 years and 13 days ago.

Previous Next


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