Hello,

I have a problem with quoting the subscript of an associative array when 
declaring a named reference to one of its elements, here is a short example to 
illustrate the problem:

typeset -A foo=([']']="right brace")
typeset input_char="]"
typeset element=foo["${input_char}"]
typeset -n reference="${element}" # this fails because the ] is not quoted any 
more
print "foo[']']=${reference}"

What can I do so that input_char is quoted correctly when declaring the named 
reference?

Thanks

-- 
Daniel
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to