bug-bash
[Top][All Lists]
Advanced

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

Re: Single quote character not handled well in associative array index


From: Chet Ramey
Subject: Re: Single quote character not handled well in associative array index
Date: Wed, 31 Aug 2016 10:50:25 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 8/29/16 5:57 PM, Jarno Suni wrote:

> Bash Version: 4.3
> Patch Level: 46
> Release Status: release
> 
> Description:
> Using associative array variable that has a single quote in index does
> not work withing (( )) without a trick.

Yes, this is a problem resulting from the subscript being scanned twice
(once to perform variable expansion before the expression evaluator is
called, and once during the expression evaluation to find the end of the
subscript).  I'll look at it after bash-4.4 is released.

Chet


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



reply via email to

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