On 02/09/2025 16:52, Pádraig Brady wrote:
On 02/09/2025 13:11, ondra007....@seznam.cz wrote:
It looks like seq for integers bigger than 2^64 sometimes generate wrong
results. There are few examples of wrong output I have found:


$ seq 18446744073709551617 inf | head -3

18446744073709551616
18446744073709551617
18446744073709551618





$  seq 10000000000000000000000000000 inf | head -3


9999999999999999999731564544
9999999999999999999731564545
9999999999999999999731564546

We can improve for the above 2 cases anyway,
with something like the attached.

Large magnitude negative start values are still problematic.

Ok I pushed that with a test 
included:https://github.com/coreutils/coreutils/commit/701416709
Marking this as done.

thanks,
Padraig



Reply via email to