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: Pádraig Brady
Subject: Re: [PATCH 1/2] seq: don't allow --equal-width option with infinite FIRST and LAST
Date: Sat, 26 Jul 2014 21:32:25 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

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.

thanks,
Pádraig.




reply via email to

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