[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Comma expression in arithmetic evaluation referring to arrays make b
From: |
Chet Ramey |
Subject: |
Re: Comma expression in arithmetic evaluation referring to arrays make bash crash. |
Date: |
Mon, 15 Feb 2016 09:31:57 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
On 2/15/16 8:57 AM, Pontus Stenström wrote:
> Bash Version: 4.2
> Patch Level: 24
> Release Status: release
>
> Description:
> Comma expression in arithmetic evaluation referring to arrays make bash
> crash.
>
> Repeat-By:
> This works fine:
> ((c=3, d=4))
> This crashes my bash:
> a=(2 3 4 5) # OK
> ((c=a[3], d=a[2])) # Crash
It runs fine on bash-4.3.42 on RHEL 5 and Mac OS X.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/