Re: [PATCH] Makes sort create random order

2005-01-30 Thread Frederik Eaton
Oh, I forgot to respond. This is not really what you are asking for. But when I need this functionality I do it in the shell. Here is an example. I am not particular about the exact type of non-ordered output. seq 1 20 /tmp/datafile for i in $(datafile); do echo $RANDOM $i; done

Re: [PATCH] Makes sort create random order

2005-01-30 Thread Felipe Kellermann
On Thu, 27 Jan 2005 10:21pm -0700, Bob Proulx wrote: A friend introduced me to that trick a few years ago and I have been using it ever since. $RANDOM is a ksh/bash specific feature. It is not POSIX but is widely available. I think my commentary on this is a bit off-topic here, but your

Re: [PATCH] bug in cygwin sys/termios.h?

2005-01-30 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 1/20/2005 9:36 PM: When compiling coreutils/src/stty.c, I got a warning: stty.c:106:1: warning: CSWTCH redefined In file included from /usr/include/termios.h:4, from stty.c:40:

some testsuite improvements

2005-01-30 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Here are some minor fixes to the testsuites. New Makefile.am targets should be made phony for performance. When parsing file mode attributes, you need to consider that a file with ACLs set show up with an extra '+' at the end of the mode string.

Re: [PATCH] bug in cygwin sys/termios.h?

2005-01-30 Thread Jim Meyering
Eric Blake [EMAIL PROTECTED] wrote: After further googling, it looks like there are several systems which have VSWTC instead of VSWTCH, but still initialize mode-c_cc[VSWTC] with CSWTCH [1]. The following patch fixes this situation for coreutils. It also silences some annoyances from cvs

Re: [PATCH] Makes sort create random order

2005-01-30 Thread Frederik Eaton
A friend introduced me to that trick a few years ago and I have been using it ever since. $RANDOM is a ksh/bash specific feature. It is not POSIX but is widely available. I think my commentary on this is a bit off-topic here, but your message reminds me of a dream I have for a long

Re: [PATCH] Makes sort create random order

2005-01-30 Thread Frederik Eaton
Such a program could do things interesting like :- 1. Permute pseudo-randomly by default. 2. Permute pseudo-randomly according to a seed specified on the command line 3. Generate the Nth permutation of its input, according to a reproducible scheme 4. Permute almost pseudo-randomly

Re: [PATCH] Makes sort create random order

2005-01-30 Thread Felipe Kellermann
On Sun, 30 Jan 2005 12:10pm -0800, Frederik Eaton wrote: seq feature for other things as well, I think, provided it was well implemented - e.g. 'jot' seems to seed it's RNG from epoch seconds, which is no good, microseconds would be better. The disadvantage is Yes, but there's two points

Re: su does not recognized root password

2005-01-30 Thread Bob Proulx
Tony Guo wrote: after I tried a few commands to change to different versions of shells available (sh, csh, ksh, etc.) with That is an important clue. I think your problem is there. my fedora core 2 installation, and have a few su-ed windows open, I suddenly found the su command does not

Re: su does not recognized root password

2005-01-30 Thread Philip Rowlands
On Sun, 30 Jan 2005, Tony Guo wrote: after I tried a few commands to change to different versions of shells available (sh, csh, ksh, etc.) with my fedora core 2 installation, and have a few su-ed windows open, I suddenly found the su command does not work any more, neither was my root password