|
| From: | Michael Witten |
| Subject: | Re: Syntax Question... |
| Date: | Sun, 14 Aug 2011 00:22:09 +0000 |
On Sat, Aug 13, 2011 at 23:41, Linda Walsh <bash@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[*]}")
| [Prev in Thread] | Current Thread | [Next in Thread] |