On Wed, Apr 27, 2011 at 10:35 PM, David Korn <[email protected]> wrote:
> 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.

Thanks... :-)

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

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

Reply via email to