[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Syntax Question...

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 <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]