bug-coreutils
[Top][All Lists]
Advanced

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

Re: Localization based problem with sort


From: Jim Meyering
Subject: Re: Localization based problem with sort
Date: Tue, 17 Jan 2006 18:35:34 +0100

James Youngman <address@hidden> wrote:
> On Tue, Jan 17, 2006 at 02:13:47PM +0100, Dirk Stoecker wrote:
>> So please tell me a way to use the sort program in contexts which allow no
>> environment variable settings. I will be happy to accept it.
>
> #! /bin/sh
> cat > $HOME/bin/sort <<EOF
> #! /bin/sh
> LC_ALL=C
> export LC_ALL
> exec /usr/bin/sort "$@"
> EOF

Or just invoke sort via env:

  env LC_ALL=C sort ...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]