Re: Issue with parameter expansion with array when index > 2^31
From:
Chet Ramey
Subject:
Re: Issue with parameter expansion with array when index > 2^31
Date:
Fri, 6 Aug 2021 09:24:28 -0400
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.12.0
On 8/5/21 4:07 PM, felix@f-hauri.ch wrote:
Bash Version: 5.1
Patch Level: 8
Release Status: release
Description:
parameter expansion don't work correctly with array when index become
bigger than 31 bit value
Thanks for the report. The function prototype needed to be changed from int
to arrayind_t.
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/