Thanks for reporting this bug. Here is a patch that should fix it. Let me
know.
--- old/sh/nvtree.c Mon Nov 25 20:26:23 2013
+++ new/sh/nvtree.c Wed Feb 5 11:30:28 2014
@@ -689,6 +689,8 @@
ep = nv_getval(mp?mp:np);
if(dot>=0)
nv_putsub(np,NULL,dot,0);
+ else if(mp && associative)
+ nv_putsub(np,mp->nvname,0,ARRAY_SCAN);
if(ep==Empty && !(ap && ap->fixed))
ep = 0;
xp = 0;
On Wed, Feb 5, 2014 at 12:47 PM, Nathan Weeks <[email protected]> wrote:
> In the latest ksh beta, "typeset -p" prints only one element of an
> associative array of type variables:
>
> =============================
> $ echo ${.sh.version}
> Version AIJM 93v- 2014-01-14
> $ typeset -T Foo_t=(typeset x)
> $ Foo_t -A foo
> $ foo[bar]=(x=1)
> $ foo[baz]=(x=2)
> $ echo ${foo[baz]}
> ( x=2 )
> $ typeset -p foo
> Foo_t -A foo=([bar]=(x=1))
> =============================
>
> --
>
> Nathan Weeks
> IT Specialist
> USDA-ARS Corn Insects and Crop Genetics Research Unit
> http://weeks.public.iastate.edu/
> _______________________________________________
> 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