On 09:11, Steven W. Orr wrote: > typeset $1 && upvars -a$nn $1 "${aval[@]}" > > The implication seems to be that the typeset command can fail. Is > this a reasonable thing to worry about?
The idea is that a typeset - besides declaring a variable local - protects upvars from malicious variable names: $ typeset 'ls -l' bash: typeset: `ls -l': not a valid identifier $ echo $? 1 Freddy Vulto http://fvue.nl