<address@hidden> writes:
> When we use the `f' option of sort the order is different shown in
> the following case. We think this may be a bug of sort.
I don't get that behavior; please see the transcript below.
As the transcript shows, I am using the sort from GNU textutils 5.3.0
<ftp://alpha.gnu.org/gnu/coreutils/coreutils-5.3.0.tar.gz> and am
using the en_US locale under Debian GNU/Linux 3.0 (woody). Perhaps
you could try coreutils 5.3.0 and see if you can still reproduce the
problem; if you can, please specify the locale and platform that you
are using.
$ cat ab
a
A
B
b
$ sort ab
a
A
b
B
$ sort -f ab
a
A
b
B
$ cat bc
b
B
C
c
$ sort bc
b
B
c
C
$ sort -f bc
b
B
c
C
$ sort --version
sort (GNU coreutils) 5.3.0
Written by Mike Haertel and Paul Eggert.
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ locale
LANG=C
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=en_US