Re: [PATCH] Makes sort create random order

2004-09-02 Thread Paul Eggert
Thomas Habets <[EMAIL PROTECTED]> writes: > They may be the same number, but they sure aren't treated as equal > (sort-order equal) by sort. sort -n gives "3 3.0 3.000" every time > here, no matter the input order. As does "3 03 3". That is because ties are broken at the end by a last-resort tex

Re: [PATCH] Makes sort create random order

2004-09-02 Thread Paul Eggert
[EMAIL PROTECTED] (Paul Jarc) writes: >> Sort of, but not quite. > > I couldn't find the "not quite" part of your explanation. Well, I tried. :-) >> "sort -rR" should output in the reverse order of "sort -R". > > Nit: they shouldn't expect that unless they also specify a seed. Yes, of course.

"paste" patch to report errno values better

2004-09-02 Thread Paul Eggert
I installed this, to fix some errno glitches that I noticed when writing the other "paste" patches. 2004-09-02 Paul Eggert <[EMAIL PROTECTED]> Output correct errno-related diagnostic on "paste" I/O errors. * src/paste.c (write_error, xputchar): New functions. (paste_para

improvement to "paste" patch for Standard C conformance

2004-09-02 Thread Paul Eggert
I installed the following obvious little "paste" patch to improve on the one I recently circulated. 2004-09-02 Paul Eggert <[EMAIL PROTECTED]> * src/paste.c (paste_parallel): Use index test instead of NULL, and NULL instead of a separate boolean array. Index: paste.c ==

Re: [PATCH] Makes sort create random order

2004-09-02 Thread Thomas Habets
On Thursday 02 September 2004 08:47, you wrote: > > This means that two different files, that happen to sort to the same > > output, should give the same output when randomized with the same SEED. > > Is that right? [*] > and then sort as if that were the correct order. Part of the idea is > that

Re: paste uses "FILE", not "FILE *"

2004-09-02 Thread Paul Eggert
Felix von Leitner <[EMAIL PROTECTED]> writes: > paste does not compile, because it tries to instantiate two FILE > variables just for the purpose of having values for FILE* to > recognize later. Thanks for reporting this. I agree with Paul Jarc that the proposed fix wouldn't work in general, so

Re: [PATCH] Makes sort create random order

2004-09-02 Thread Paul Jarc
Paul Eggert <[EMAIL PROTECTED]> wrote: > Thomas Habets <[EMAIL PROTECTED]> writes: > >>> sort: Add an ordering option -R that causes 'sort' to sort according >>> to a random permutation of the correct sort order. >> >> This means that two different files, that happen to sort to the same outpu