GNU bug report logs - #16061
Error in the message for src/shuf.c:73 in 8.22-pre3

Previous Next

Package: coreutils;

Reported by: Philipp Thomas <pth <at> suse.de>

Date: Thu, 5 Dec 2013 20:55:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 16061 <at> debbugs.gnu.org (full text, mbox):

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: Philipp Thomas <pth <at> suse.de>, 16061 <at> debbugs.gnu.org
Subject: Re: bug#16061: Error in the message for src/shuf.c:73 in 8.22-pre3
Date: Fri, 06 Dec 2013 01:15:46 +0100
On 12/06/2013 12:37 AM, Pádraig Brady wrote:
> diff --git a/src/shuf.c b/src/shuf.c
> index f7fc936..4d0ae90 100644
> --- a/src/shuf.c
> +++ b/src/shuf.c
> @@ -76,8 +76,8 @@ Write a random permutation of the input lines to standard output.\n\
>    -n, --head-count=COUNT    output at most COUNT lines\n\
>    -o, --output=FILE         write result to FILE instead of standard output\n\
>        --random-source=FILE  get random bytes from FILE\n\
> -  -r, --repetitions         output COUNT items, allowing repetition.\n\
> -                              -n 1 is implied if not specified.\n\
> +  -r, --repetitions         allow repetition within a specified --head-count\n\
> +                              which is assumed to be 1, if not specified.\n\

n=1 is not really a repetition. ;-)

BTW: What was the reason to default n=1 with -r anyway?
I mean as the user did not specify any limit he may assume
the same number as in the input, like without -r.

Besides that, I can't think of a better wording than above.

Have a nice day,
Berny




This bug report was last modified 11 years and 165 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.