Dan Jacobson <[EMAIL PROTECTED]> writes: > In this message > *** WARNING *** The locale specified by the environment affects sort > order. Set LC_ALL=C to get the traditional sort order that uses native > byte values. > > The word "environment" must not be enough.
It's not just "environment". It's "locale specified by the environment". The way this works is implementation-defined. > On one machine I get > $ echo /a b /c|xargs -n 1|env - LC_COLLATE=en_US sort > /a > /c > b > On another I get > $ echo /a b /c|xargs -n 1|env - LC_COLLATE=en_US sort > /a > b > /c > Both with sort (GNU coreutils) 5.93 Both hosts conform to the standard, since you get undefined behavior if you set LC_COLLATE without setting the other parts of the locale in a consistent way. Possibly you didn't have the locale installed on one of your hosts. But anyway, this is not a coreutils issue; it's a C library and locale issue. Coreutils can't document everything there is to know about your C library; for one thing, "--help" output is too short for that, and for another thing, we don't know how your C library behaves. If you don't like the way your C library works, you should take it up with your C library's maintainers. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]