GNU bug report logs - #9281
Is this expected behavior?

Previous Next

Package: coreutils;

Reported by: Ajesh Shaj <ajesh <at> yahoo-inc.com>

Date: Thu, 11 Aug 2011 06:40:04 UTC

Severity: normal

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: Ajesh Shaj <ajesh <at> yahoo-inc.com>
To: 9281 <at> debbugs.gnu.org
Subject: bug#9281: Is this expected behavior?
Date: Thu, 11 Aug 2011 12:01:38 +0530
[Message part 1 (text/plain, inline)]
Hi,

    I got a strange ordering when I applied the linux sort command. Please see below for the details:

[ajesh <at> gwta3004 tmp]$ cat a
.a
ba
.b
bb
.c
bc
[ajesh <at> gwta3004 tmp]$ sort a
.a
.b
ba
bb
bc
.c


NOTE: .a and .b appears before ba and bb, where as .c appears after bc.

In general

if the file has strings of the type .<x> and <y><x>,

then for all x <= y, .x appear before yx and
          for all x>y, .x appear after yx

Is this expected behavior?

Regards
Ajesh

--

[Message part 2 (text/html, inline)]

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

Previous Next


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