[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: is it a bug?
From: |
Eric Blake |
Subject: |
Re: is it a bug? |
Date: |
Mon, 01 Mar 2010 09:58:08 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
According to Igor Zakharoff on 3/1/2010 9:49 AM:
> $ echo -e "ru.unix /h\nru.unix.ftn /h\nru.unix.prog /h" | sort
>
> I somehow get
>
> ru.unix.ftn /h
> ru.unix /h
> ru.unix.prog /h
>
> Is it a bug?
Nope. I reproduced your results with the en_US locale, but not with the C
locale. Remember that in some locales, like en_US, whitespace is ignored
as insignificant in collation.
Try '... | LC_ALL=C sort' to see the difference.
http://www.gnu.org/software/coreutils/faq/#Sort-does-not-sort-in-normal-order_0021
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- is it a bug?, Igor Zakharoff, 2010/03/01
- Re: is it a bug?,
Eric Blake <=