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 [email protected] +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
