On Tue, Aug 5, 2014 at 10:14 AM, Eric Blake <eblake@xxxxxxxxxx> wrote: > On 08/05/2014 11:12 AM, Chema Gonzalez wrote: >>> Setting LC_ALL= to the empty string risks implementation-defined >>> behavior. Also, LC_ALL overrides LANG and LC_COLLATE. It should be >>> sufficient to merely do: >>> >>> }}' $temp | LC_ALL=C sort -k 1,1 | tee $temp2 | awk '{ >> >> Maybe: >> }}' $temp | LC_ALL=C LANG=C sort -k 1,1 | tee $temp2 | awk '{ > > No need to specify LANG=C when LC_ALL is set. I stand by my shorter line. I'd prefer to see if any FreeBSD user can confirm whether LC_ALL overrides LANG (as in Linux) or the other way around. The docs seems to suggest to use LANG instead of LC_ALL there. http://www.freebsd.org/doc/handbook/using-localization.html -Chema > > -- > Eric Blake eblake redhat com +1-919-301-3266 > Libvirt virtualization library http://libvirt.org > -- To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html