Peer Heinlein ha scritto: > I asked several tong-time professional administrators (and I'm in business > since 1992 too) -- most of them doesn't have a clue why LANG=C should be > useful except for having a reproduceable behavior in "sort". > > Could you give me a hint? What is this topic for? Just for sort? > > In that case it could be helpful for change the objectives into "As well, > an understanding of why LANG=C is useful when using "sort" in scripts" to > give candidates a chance. > It's not only a reproducible behaviour of sort output, it concern also results of range selection in the filename globbing, and in regular expression. Just doing ls [A-Z]* has a totally different output when given in an italian localization.
So you must be aware that different languages have different alphabetical ordering (and different format for dates and for decimal number), and that just this can affect your results. So the use of LANG=C can ensure that your scripts will give you the same results on all environment. Left for exercise is to explain why using LANG=C is a better choice than LANG=it_IT (or any other one). Regards Simone _______________________________________________ lpi-examdev mailing list [email protected] http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-examdev
