[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Bernhard Voelker
Subject: bug#16061: Error in the message for src/shuf.c:73 in 8.22-pre3
Date: Fri, 06 Dec 2013 01:15:46 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

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,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]