GNU bug report logs - #14318
sort: unexpected results

Previous Next

Package: coreutils;

Reported by: Kenneth Dickman <kenneth.dickman <at> citrix.com>

Date: Tue, 30 Apr 2013 01:48:02 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.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: Kenneth Dickman <kenneth.dickman <at> citrix.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Cc: Kenneth Dickman <kenneth.dickman <at> citrix.com>,
	Vijay Patel <Vijay.Patel <at> citrix.com>
Subject: sort: unexpected results
Date: Mon, 29 Apr 2013 18:37:10 -0700
Why does putting "depot" in the input file, corrupt the sort function? How can I get sort to operate properly?

$ cat good
bin/... //b/bin/...
logs/... //logs/...
... //b/...
$ sort good
... //b/...
bin/... //b/bin/...
logs/... //logs/...
$ cat bad
bin/... //depot/b/bin/...
logs/... //depot/logs/...
... //depot/b/...
$ sort bad
bin/... //depot/b/bin/...
... //depot/b/...
logs/... //depot/logs/...
$

This occurs on RedHat:

$ uname -a
Linux hidden-name 2.6.32-71.15.1.el6.x86_64 #1 SMP Sun Jan 23 10:39:44 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
$ which sort
/bin/sort
$ file /bin/sort
/bin/sort: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
$

And on Linux Mint (which is on top of Ubuntu):

$ uname -a
Linux hidden_name 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ which sort
/usr/bin/sort
$

Thanks for your help!
Ken




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

Previous Next


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