[Top][All Lists]

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

Re: Missing documentation of the integer range (declare -i)

From: Chet Ramey
Subject: Re: Missing documentation of the integer range (declare -i)
Date: Wed, 6 Dec 2017 07:58:51 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

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
> which.

It's always been platform-dependent. It used to be `unsigned long', now
it's `intmax_t'.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/

reply via email to

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