Rein van Vliet <[EMAIL PROTECTED]> writes:
| About 'sort' version 2.0 on Linux 2.2.12-20:
| when given no flags it acts like given -bf.
|
| Example
|       # cat xx
|        b
|       Ax
|       a
|       # sort xx
|       a
|       Ax
|        b

[this is a FAQ, so here's the canned reply]
You are using the version of sort that comes with textutils-2.0
or newer and have reported a problem whereby it is sorting in
some non-ASCII order.

That is due not to a bug in sort, but to the fact that you have
set environment variables that direct sort to use improper locale-
specific tables (you probably have LC_ALL set to en_US).

You should set LC_ALL to POSIX

  # If you use bash or some other Bourne-based shell,
  export LC_ALL=POSIX

  # If you use a C-shell,
  setenv LC_ALL POSIX

and then sort will work the way you expect.

Reply via email to