On Wed, Dec 06, 2017 at 03:35:51PM +0100, H.-Dirk Schmitt wrote:
> I carefully read the man page and find no definition of the defined
> range of integer variables in bash.

Bash uses signed 64-bit integers for arithmetic, since version 2.05b.
Before that, it was either 32-bit or platform-defined; I'm not sure
which.

(Also, don't use declare -i.  Please.  It's atrocious.)

wooledg:~$ echo $((2**63-1))
9223372036854775807
wooledg:~$ echo $((2**63))
-9223372036854775808

Reply via email to