On 3/9/15 9:18 PM, [email protected] 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 [email protected] http://cnswww.cns.cwru.edu/~chet/