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: Dirk Stoecker
Subject: Re: Localization based problem with sort
Date: Tue, 17 Jan 2006 16:23:18 +0100 (CET)

On Tue, 17 Jan 2006, James Youngman 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
> chmod 555 $HOME/bin/sort
> PATH="$HOME"/bin:"$PATH"

You hopefully agree, that creating a new sort-command (which BTW can't be 
named sort, as this means user-global settings and not per-call settings) 
is rather strange?

Ciao
-- 
http://www.dstoecker.de/ (PGP key available)




reply via email to

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