On Thu, Jun 7, 2012 at 6:07 AM, Linda Walsh <b...@tlinx.org> wrote: > > > Greg Wooledge wrote: >> >> The only Bourne-family shell that can manipulate arrays whose names are >> passed to a function is ksh93, with its "nameref" command. Bash has >> nothing analogous to that yet. > > ============= > > I don't understand. > > Are you saying that ${!nameofvar} isnt' supported?
in ksh93 you can do: $ function foo { nameref locarr=$1;echo ${locarr[0]};locarr[0]=newfoo; } $ array=(foo bar baz) $ foo array foo $ echo ${array[0]} newfoo There is nothing that easy in bash.