On 12/6/17 7:35 AM, H.-Dirk Schmitt wrote:
> Checked against: GNU bash, Version 4.4.12(1)-release (x86_64-pc-linux-
> I carefully read the man page and find no definition of the defined
> range of integer variables in bash.
> see also: `man bash |& grep -i integer`
It's machine-dependent. The documentation guarantees only `fixed-width
integers', represented as intmax_t. That gives you the widest range
possible on the platform for which your binary was built.
On 12/6/17 7:53 AM, Greg Wooledge wrote:
> 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
It's always been platform-dependent. It used to be `unsigned long', now