On 03/09/2011 01:47 PM, Niergarth, Jeffrey wrote: > The 'sort' utility (no options) doesn't behave as expected: Thanks for the report. However, I fail to see that this is a bug. > > Here are the pertinent results: > > /fpga/OAF/HD/rtl/vhdl_wrapper/clock_monitor_synthesis.v > /fpga/OAF/HD/rtl/vhdl_wrapper/clockmonitor_synthesis.v > /fpga/OAF/HD/rtl/vhdl_wrapper/clock_monitor_synthesis.v IN > /fpga/OAF/HD/rtl/vhdl_wrapper/clockmonitor_synthesis.v IN This looks reasonable if you are using a locale that discards punctuation from collation sorting (such as many implementations of en_US.UTF-8). This is a FAQ: http://www.gnu.org/software/coreutils/faq/#Sort-does-not-sort-in-normal-order_0021 Try 'LC_ALL=C sort' on the same data, to force all bytes to behave in ASCII ordering. I'm marking this bug as closed for now, but if you can provide compelling evidence that there really is a bug in sort after you sort out your locale, then we can re-open it. You may also want to try the 'sort --debug' option in the latest coreutils 8.10 to help diagnose what sort is really doing, and why it is correct (even if it is not what you were wanting, because you didn't use the right command line options and locale environment variables). -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org