|
From: | Paul Jarc |
Subject: | Re: variable indirection and arrays ? |
Date: | Wed, 20 Nov 2002 12:49:26 -0500 |
User-agent: | Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu) |
Jorma Laaksonen <jorma.laaksonen@hut.fi> wrote: > bash-2.05a$ a=(xxx yyy zzz) > bash-2.05a$ b=a > bash-2.05a$ echo ${a[@]} > xxx yyy zzz > bash-2.05a$ echo ${!b[@]} > xxx ! is just syntactic sugar. You can use eval to get the same effect: eval "echo \${${b}[@]}" paul
[Prev in Thread] | Current Thread | [Next in Thread] |