cc: [email protected]
Subject: Re: [ast-users] [ksh93] `typeset -n ref=arr[0]' does not work?
--------


> For example:
> 
> $ echo $KSH_VERSION
> Version JMP 93u+ 2012-02-29
> $ typeset -a arr=( ( 1 2 ) ( 3 4 5 ) )
> $ typeset -n ref=arr[1]    <== no errors reported so I assume this is
> supported
> $ typeset -p ref
> typeset -n ref=arr    <== ???
> $ echo ${ref[0][@]}    <== but actually `ref' is not the reference to `arr'
> either
> 

This is a bug and I have a fix for it.

ref[@] should be the same as arr[1][@].

David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to