tag 17188 notabug
thanks
On 04/04/2014 08:07 PM, Nikos Balkanas wrote:
> Hi,
>
> Sort is seriously bugged. This is the output from:
>
> sort -d -t \t -k1 input > out
-d says to do a dictionary sort that ignores non-alphanumeric
characters. But it still leaves it up to your current locale on whether
those non-alpha characters are collated case-insensitively.
Also, '-k1' is almost always wrong - you generally want '-k1,1' if you
want to sort by JUST the first field, rather than by the whole line.
See the FAQ:
https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Sort-does-not-sort-in-normal-order_0021
>
> 0009rN2S3cohd2DGH6yuTWBoeuq6DwWZhCBDEnFzYqpw984FfALy7NUhEZH1.YEbiq/
> 000EMQeKUjtyXIOaUkT.XE6SaBIdOqTA0nffF394V6tkcVdup2c3ihi7yhbuRof2Y5agTG
> 000p8kXIz5Tc1GaxYYXjAfgm7YJOZvyBJxVXMi0lhaJXT22IdDbE6vVhWXW9FkRBxQ
> 00/0QwzaXrqGHXW7mE9Le8IIVgHoZvccgGydKdzJgh8.SZenbULmIWMtrGShz24W7T
> 000R2cnZ8.khe1eXDERclkbXASRQeKvcNBaCJRLX617Xvmff0KaoZSSFBNhNG1OiIyr
>
> Shouldn't 00/0 be first according to Ascii code?
There's nothing to fix but your usage pattern. So I'm closing this as
not a bug. But feel free to reply further if you still have questions.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org