On 4/6/21 1:42 PM, Greg Wooledge wrote:
3) Expressions like a[$key] must be single-quoted in some contexts, or
you get surprising behaviors.
4) Expressions like a[$key] must be backslash-protected in some other
contexts, or you get surprising behaviors.
Yes, Greg, that's what we're talking about changing here.
That said, the fact that you can put 'a[@]' in an indirect variable and
get an array expansion out of "${!x}" is completely repulsive to me.
What do you think should happen?
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/