GNU bug report logs - #79369
seq generates wrong sequences for big numbers

Previous Next

Package: coreutils;

Reported by: <ondra007.tom <at> seznam.cz>

Date: Tue, 2 Sep 2025 14:01:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Full log


View this message in rfc822 format

From: <ondra007.tom <at> seznam.cz>
To: 79369 <at> debbugs.gnu.org
Subject: bug#79369: seq generates wrong sequences for big numbers
Date: Tue, 02 Sep 2025 14:11:28 +0200 (CEST)
[Message part 1 (text/plain, inline)]
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





$  seq -1000000000000000000000000 0 | head -3


-1000000000000000000000000
-1000000000000000000000000
-1000000000000000000000000




It is similar to bug #75994 which reports the same issue but only for "-w"
option.
[Message part 2 (text/html, inline)]

This bug report was last modified 10 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.