bug-bash
[Top][All Lists]
Advanced

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

Re: certain strings both legal and illegal as associative array keys


From: Chet Ramey
Subject: Re: certain strings both legal and illegal as associative array keys
Date: Tue, 10 Mar 2015 11:12:06 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 3/9/15 9:18 PM, address@hidden wrote:

> This implies to me that escaping the quotes in the unset line would cause the 
> array code to see the same thing in both cases.  That is,
> 
> unset foo[\"a\'b\"]
> 
> would mean that the pre-array code word expansions would result in foo["a'b"] 
> being passed to the array code, the same as what that code sees in the 
> assignment case.
> 
> However, the net result of this modification is to change the script error 
> message from "not a valid identifier" to "bad array subscript".

Yes, that's a problem.  I will take a look at it and fix it for the next
release.

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



reply via email to

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