Nicolas Williams wrote: > On Tue, Jan 13, 2009 at 11:57:04PM +0100, Jennifer Pioch wrote: > > > I could detect that x is followed by a + and just > > > check for not set. > > > > How does this help with functions and name references? > > Speaking of which, are namerefs to arrays inside compound variables > going to be allowed in the future?
Erm... plain namerefs to a variable tree (e.g. compound variable which contains an array of compound variables etc.) should work properly now. What you can't do is to use a nameref _within_ a compound variable (e.g. $ typeset -C foo=( nameref x=blabla ) # ) - that will never work for various reasons (one being problems with recursion (e.g. nameref pointing to a parent variable) and the 2nd is that the ${!x}-style syntax would be ambigous). ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz at nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;)