coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH 1/2] seq: don't allow --equal-width option with infinite FIRS


From: Bernhard Voelker
Subject: Re: [PATCH 1/2] seq: don't allow --equal-width option with infinite FIRST and LAST
Date: Sun, 27 Jul 2014 18:00:58 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 07/26/2014 10:32 PM, Pádraig Brady wrote:
> On 07/26/2014 07:06 PM, Bernhard Voelker wrote:
>> seq(1) could not determine the width of large values toward INF
>> values.  Therefore, specifying -w is useless in such a case.
>>
>> * src/seq.c (main): Output an error diagnostic when the -w option
>> is specified together with non-finite values for FIRST or LAST.
>> * tests/misc/seq.pl: Add tests.
>> * NEWS (Changes in behavior): Mention the change.
> 
> We already restrict -w to be incompat with --format.
> However that's an invariant aspect of seq invocation.
> One might have a script that took the end point as a parameter,
> which would now fail.  I've a slight preference for the
> existing behavior of ignoring -w in this case, like we
> do for hex inputs for example.

I agree, let's leave it then.
Thanks.

Have a nice day,
Berny



reply via email to

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