On Sat, Dec 1, 2012 at 2:09 AM, David Korn <[email protected]> wrote:
> Subject: Re: Re: [ast-users] [ksh93] Problem with `typeset -a arr[0]=()' > -------- > > On Fri, Nov 23, 2012 at 6:17 AM, Clark WANG <[email protected]> wrote: > > See following example: > > > > $ echo ${.sh.version} > > Version AJMP 93u+ 2012-08-01 > > $ typeset -a arr > > $ typeset -a arr[0]=() > > $ typeset -p arr > > typeset -a arr=(;) ) > > $ > > > > The final `typeset -p' output is invalid. > > > In the next alpha, the output for typeset -p arr is > typeset -a arr=( () ) > There's a problem here. `typeset -a arr=( () )' will create arr[0] as a compound var. Seems like there's no way for `typeset -p' to recreate arr[0] as an indexed array. > > David Korn > [email protected] > _______________________________________________ > ast-users mailing list > [email protected] > http://lists.research.att.com/mailman/listinfo/ast-users >
_______________________________________________ ast-users mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-users
