cc: [email protected]
Subject: Re: [ast-developers] "Copy compound variable"-operator does not work  
for array elements...
--------

> We found a bug in the "copy" operator for compund variables. Basically
> the following line will copy the compound variable value from variable
> "c" to variable "a":
> -- snip --
> $ ksh93 -c 'compound a ; compound c=( name="container1" ) ; a=c ;
> print -v a'
> (
>         name=container1
> )
> -- snip --
> ... but if I replace the destination with the name of a compound
> variable indexed array element it no longer works in
> ast-ksh.2011-04-15:
> -- snip --
> $ ksh -c 'compound -a a ; compound c=( name="container1" ) ; a[4]=c ;
> print -v a[4]'
> c
> -- snip --
> 
> ----

This is fixed in the next beta.

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

Reply via email to