cc: ksh93-integration-discuss at opensolaris.org Subject: Re: Re: [ksh93-integration-discuss] Dereferencing an array name reference --------
> > However, the behavior of > > ${!x[foo]} > > is currently undocumented and currently outputs foo. This will be changed > > Why do you think that this is undocumented? I'd expect that if x is an > element in an array [foo] describes the 2nd dimension, expanding to > a[x][foo]. Or am I wrong? > -- > robert neville - it consultant > > I was saying that even in the case that x is an array variable, not a reference, that the documentation does not say ${!x[foo]} will yield. It should yield x[foo] but it in fact gives foo. You are correc that if x is a name reference to a[x], then ${!x[foo]} should be a[x][foo]. David Korn dgk at research.att.com