Re: Report the bug of sort command
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to qiwensheng on 4/10/2009 1:18 AM: Dear Sir or Madam: I made a file named words.txt. And it's content as follow: [Your screenshots were filtered by the list software. Next time, just cut and paste the actual text, as that uses much less bandwidth, and won't make it so hard to decipher your report.] So, the result of it does not all reverse the original file in fact. Can you give me an explanation of this phenomenon? Most likely, it is not a bug in sort, but a misunderstanding on your part about how your current choice of locale affects sort. http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Sort-does-not-sort-in-normal-order_0021 - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknfQ3wACgkQ84KuGfSFAYD4+wCfQ0OLtT/oK0K0uwbtaiysqTzp oN4AmwaIYd3E93h3fa5aqrTFTN/FxUv2 =kxsU -END PGP SIGNATURE- ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils
Re: Report the bug of sort command
On Friday 10 of April 2009 09:18:51 qiwensheng wrote: Dear Sir or Madam: I made a file named words.txt. And it's content as follow: But I use the sort -r command line (sort -r words.txt ) for this file, and it displays as follow: So, the result of it does not all reverse the original file in fact. Can you give me an explanation of this phenomenon? Result of sort -r is not reversed original file, but the original file sorted in reverse order. The original file is not sorted, that's it! If the original file was already sorted, it would return it in reverse order. Kamil ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils
Re: Report the bug of sort command
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Kamil Dudka on 4/10/2009 7:08 AM: So, the result of it does not all reverse the original file in fact. Result of sort -r is not reversed original file, but the original file sorted in reverse order. The original file is not sorted, that's it! If the original file was already sorted, it would return it in reverse order. If you want the original file in reverse order, consider using tac. - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknfRigACgkQ84KuGfSFAYDzRACgps9rCgjxIjFsTDmKHmP6ZgxK hGYAoMoqtfy2dhsFqA9NCUArisb3YCot =QWFq -END PGP SIGNATURE- ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils