That explains the format change. While this seems a bit inconsistent
with the output of ${!array[@]}, I'm not going to quibble about format.
However, my comments concerned the reporting of nonexistent
indexes/keys. What's the purpose of the construct if it reports an array
index/key where none exists? To put it another way, before the change
the test:
[[ ${!array[$index]} ]]
was useful. Now, it's meaningless since it's always true -- even if
$index isn't an index of the array.
Terrence Doyle
On 8/2/13 9:29 AM, David Korn wrote:
> cc: [email protected]
> Subject: Re: Re: [ast-users] Problem in ksh93 93t+ (my reference 46004)
> --------
>
> I located when the change was made and it looks like it was intensional
> since it was documented. In the RELEASE file, it has
> 07-09-18 The value of ${!var[sub]} was not expanding to var[sub] and this
> was fixed. It also fixed ${name} where name is a name reference
> to var[sub].
>
> Unfortunately, I haven't as of yet located the reason for the change,
> but at this point it does not look like a bug and that the bug
> is the man page which wasn't updated then.
>
> David Korn
> [email protected]
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users