>>>>> "Paul" == Paul Jarc <prj@po.cwru.edu> writes:
Paul> Jim Thomas <thomas@cfht.hawaii.edu> wrote:
>> bash-2.05$ declare -a a=($@)
>> bash-2.05$ echo ${a[$*]}
>> bash: 1 2 3: syntax error in expression (error token is "2 3")
Paul> ITYM "echo ${a[*]}".
Duh :-(
>> bash-2.05$ declare -a $foo=($@)
>> bash: declare: a: cannot assign to array variables in this way
>> bash: declare: `2': not a valid identifier
>> bash: declare: `3)': not a valid identifier
Paul> Maybe this works: eval "declare -a $foo=($@)"
Yes, thank you. But shouldn't the original work too?
Mahalo,
Jim