Hi,

On Thu, Feb 05, 2015 at 10:12:14AM +0100, Martin Møller Skarbiniks Pedersen 
wrote:
>    Why is LANG=C useful when scripting ?

Anselm and others did already explain why it is useful.

But I want to mention that it's not the only environment variable used for
localization by many tools on modern linux systems. Example:

$ cmp /etc/passwd /etc/passwd-
cmp: EOF auf /etc/passwd-.
$ LANG=C cmp /etc/passwd /etc/passwd-
cmp: EOF auf /etc/passwd-.
$ LANG=C LC_ALL=C cmp /etc/passwd /etc/passwd-
cmp: EOF on /etc/passwd-

LC_* vars are explained at 
http://pubs.opengroup.org/onlinepubs/7908799/xbd/envvar.html

Frank

_______________________________________________
lpi-discuss mailing list
lpi-discuss@lpi.org
http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-discuss

Reply via email to