[PATCH] tests: fix "shuf unreadable" test to work when run as root

2013-07-04 Thread Pádraig Brady
* tests/misc/shuf.sh: Restrict the test to the significant case where we can't in fact read the "unreadable" file. --- tests/misc/shuf.sh |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/misc/shuf.sh b/tests/misc/shuf.sh index 171b25a..3e33b61 100755 --- a/tests/

Re: Generate random numbers with shuf

2013-07-04 Thread Pádraig Brady
On 07/04/2013 09:41 PM, Assaf Gordon wrote: > Hello, > > Regarding old discussion here: > http://lists.gnu.org/archive/html/coreutils/2011-02/msg00030.html > > Attached is a patch with adds "--repetition" option to shuf, enabling random > number generation with repetitions. > > Example: > > to

Generate random numbers with shuf

2013-07-04 Thread Assaf Gordon
Hello, Regarding old discussion here: http://lists.gnu.org/archive/html/coreutils/2011-02/msg00030.html Attached is a patch with adds "--repetition" option to shuf, enabling random number generation with repetitions. Example: to generate 50 values between 0 and 9: $ shuf --rep -i0-9 -n50 C

Re: sort/uniq/join: key-comparison code consolidation

2013-07-04 Thread Pádraig Brady
On 07/04/2013 06:33 PM, Assaf Gordon wrote: > Regarding previously discussed topic: > > http://lists.gnu.org/archive/html/coreutils/2013-02/msg00082.html > > > Attached is another update, rebased against the latest version. > > comments are welcomed, > -gordon > Thanks Assaf, This is bubbl

Re: sort/uniq/join: key-comparison code consolidation

2013-07-04 Thread Assaf Gordon
Regarding previously discussed topic: http://lists.gnu.org/archive/html/coreutils/2013-02/msg00082.html Attached is another update, rebased against the latest version. comments are welcomed, -gordon key-comapre.2013-07-02.patch.xz Description: application/xz

Re: Feature Request: disallow world-writable files in chmod

2013-07-04 Thread Ben Lentz
On Thu, Jul 4, 2013 at 8:12 AM, Jaroslav Rakhmatoullin wrote: > If a user wants to (makes the mistake of) let others delete their files, > it's not "your job" to teach them otherwise. Compare to "real life"; someone > leaves a bike on the street unlocked and someone else steals it. Does it > make

Re: Feature Request: disallow world-writable files in chmod

2013-07-04 Thread Jaroslav Rakhmatoullin
If a user wants to (makes the mistake of) let others delete their files, it's not "your job" to teach them otherwise. Compare to "real life"; someone leaves a bike on the street unlocked and someone else steals it. Does it make sense to file a complaint to the police department about not educating