[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Indirect expansion and arrays
From: |
Greg Wooledge |
Subject: |
Re: Indirect expansion and arrays |
Date: |
Fri, 30 Jul 2010 08:15:58 -0400 |
User-agent: |
Mutt/1.4.2.3i |
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.