bug-bash
[Top][All Lists]
Advanced

[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:57:35 -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:35 AM, H.-Dirk Schmitt wrote:
> Checked against:  GNU bash, Version 4.4.12(1)-release (x86_64-pc-linux-
> gnu) 
> 
> 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.

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



reply via email to

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