[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [the result of $[23**15] is wrong]
From: |
Chet Ramey |
Subject: |
Re: [the result of $[23**15] is wrong] |
Date: |
Mon, 11 Jul 2022 11:12:12 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 |
On 7/11/22 10:14 AM, root@ROCKY8-5-WL.localdomain wrote:
Bash Version: 4.4
Patch Level: 20
Release Status: release
Description:
[Detailed description of the problem, suggestion, or complaint.]
in bash the result of $[23**15] is wrong
for example output
[root@ROCKY8-5-02 ~]#echo $[23**15]
8380818432457522983
Integer overflow. The result exceeds what can be represented in a signed
64-bit integer.
--
``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/