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 ...