bug-coreutils
[Top][All Lists]
Advanced

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

bug#23110: seq apparent bug


From: Bernhard Voelker
Subject: bug#23110: seq apparent bug
Date: Thu, 24 Mar 2016 18:44:04 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

On 03/24/2016 04:28 PM, Маренков Евгений wrote:
> I have recently noticed an apparent bug in 'seq'. If one runs
> seq -w 2 1 10
> everything works fine.
> But 
> seq -w 2 0 10
> falls into endless loop ...

Thanks for the report.
However, I don't think this is a bug but more a misunderstanding
on your side how seq works.  It's clearly documented that the
second number (if 3 are given) is the increment.  As you passed
0 as value, the target 10 is never reached, and therefore seq
continues to produce output.  Thus, it exactly does what you
told it to do.  What else would you expect?

Have a nice day,
Berny





reply via email to

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