On Thu, Jul 29, 2010 at 10:55:51PM +0200, Bernd Eggink wrote: > It seems that indirect expansion doesn't work with arrays:
ksh93 has a feature called nameref: myfunc() { nameref ref=$1 echo "array $1 has ${#ref[*]} elements" } I wouldn't mind seeing this in bash, though I'm not going to attempt to code it.