[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug in sort



* Gerhard Wolfstieg <gw@wolfstieg.com> wrote:
>      Hallo zusammen,
> 
> kann jemand bestätigen, daß sort auch ohne Angabe von -f Klein‐ als
> Großbuchstaben behandelt, also nicht case sensitive sortiert? Bei mir
> ist das reproduzierbar so mit:
> sort -ur <Quelle> -o <Ziel>

Nun probiere das ganze mal mit LC_ALL=C, bzw. LC_COLLATE=C reicht schon, 
und du siehst warum es diese Option gibt.

,----[ man sort ]-
| ***  WARNING  ***  The  locale  specified  by the environment affects
|      sort order.  Set
|      values.
| 
`----

,----[ info sort ]-
| Unless otherwise specified, all comparisons use the character
| collating sequence specified by the `LC_COLLATE' locale.(1)
| 
`----


Reply to: