On Sat, Aug 13, 2011 at 23:41, Linda Walsh <b...@tlinx.org> wrote:
> ${#${!name}[*]}
> bash: ${#${!name}[*]}: bad substitution

It's probably what you're trying to avoid, but you'll probably have to
construct and then eval the right code by hand:

  $(eval "echo \${#$name[*]}")

Reply via email to