Re: chmod RFE

2005-07-16 Thread James Youngman
On Fri, Jul 15, 2005 at 12:18:35PM -0700, Dave Yost wrote: The chmod on Mac OS X (which is probably same as one of the BSDs) has better functionality and a much better man page. GNU should catch up. Dave Dave, Thanks for your interest. Maybe you're right. Please explain in more detail

Re: more gcc warnings

2005-07-16 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Paul Eggert on 7/15/2005 4:10 PM: For coreutils we don't need to worry about this. We can assume that if freopen (NULL, ...) is being called, then the call is either freopen (NULL, rb, stdin) or freopen (NULL, wb, stdout). With

Re: new coreutil? shuffle - randomize file contents

2005-07-16 Thread Frederik Eaton
Also, each external symbol (function, macro, variable) should have a comment explaining what it does. Currently I'm at a bit of a loss trying to figure out what things do, so my comments will be limited. +#ifndef _CHECKSUM_H +#define _CHECKSUM_H 1 + +#include sys/types.h +#include

Re: new coreutil? shuffle - randomize file contents

2005-07-16 Thread David Feuer
On Sat, Jul 16, 2005 at 07:01:53AM -0700, Frederik Eaton wrote: If it's the pseudorandomness, I think mentioning that is redundant, and the same thing I said about not wanting implementation in the API applies - a good pseudorandom number generator should be externally indistinguishable from

Re: chmod RFE

2005-07-16 Thread Dave Yost
At 10:28 AM +0100 2005-07-16, James Youngman wrote: On Fri, Jul 15, 2005 at 12:18:35PM -0700, Dave Yost wrote: The chmod on Mac OS X (which is probably same as one of the BSDs) has better functionality and a much better man page. GNU should catch up. Dave Dave, Thanks for your interest.

Re: chmod RFE

2005-07-16 Thread James Youngman
On Sat, Jul 16, 2005 at 12:26:28PM -0700, Dave Yost wrote: At 10:28 AM +0100 2005-07-16, James Youngman wrote: Thanks for your interest. Maybe you're right. Please explain in more detail why you think that the MacOS X implementation of chmod(1) is superior to the GNU coreutils

[patch] date -d lunchtime

2005-07-16 Thread James Youngman
Printing to stderr may not be the best thing for a library function to do, so I'm not sure if this patch is factored correctly. The yylex() function isn't really able to return an error message as such. Anyway, here's my patch (against current CVS). 2005-07-16 James Youngman [EMAIL PROTECTED]

Re: more gcc warnings

2005-07-16 Thread Paul Eggert
Eric Blake [EMAIL PROTECTED] writes: Of course, this is cygwin-specific; it would need accompanying autoconf magic and #ifdef'ery to install it only on platforms with O_BINARY and where freopen(NULL) doesn't work, without causing compile errors on other platforms. Thanks. Can you write the

Re: chmod RFE

2005-07-16 Thread Paul Eggert
Dave Yost [EMAIL PROTECTED] writes: The chmod on Mac OS X (which is probably same as one of the BSDs) has better functionality and a much better man page. GNU should catch up. I assume you're talking about the -H, -h, -L, -P options. You're right, these would be nice to add to coreutils. Do

Re: autoreconf vs bootstrap script

2005-07-16 Thread Paul Eggert
[EMAIL PROTECTED] (Bob Proulx) writes: Doesn't 'autoreconf --install' do everything that one would want in a bootstrap script these days? It must not, since GNU tar's bootstrap script invokes autoreconf --install but has about 300 other lines of shell scriptery to do stuff that autoreconf

code issues in sort.c

2005-07-16 Thread David Feuer
sort.c does a whole lot of fancy stuff, but lacks explanations for it. Even the most basic question, why does sort use a merge sort, is not answered. I tried to find out by reading through the archives of bug-coreutils and bug-textutils, but failed. Maybe this is obvious to everyone else, but