David Korn
2013-07-10 20:03:46 UTC
cc: ast-developers at research.att.com
Subject: Re: "${a[@]}" returns random numbers for Boolean associative array (bool -A)
--------
==================cut here===========================
--- old/sh/name.c Mon Jun 24 15:37:10 2013
+++ new/sh/name.c Wed Jul 10 14:39:41 2013
@@ -393,6 +393,8 @@
if(array&NV_ARRAY)
{
nv_setarray(np,nv_associative);
+ if(typ)
+ nv_settype(np,typ,0);
}
else
{
==================cut here===========================
David Korn
dgk at research.att.com
Subject: Re: "${a[@]}" returns random numbers for Boolean associative array (bool -A)
--------
1=37792
1=37824
2=
1=true
1=false
2=
This happens with the latest 2013-06-28.
If you have a patch please share it before the next release. Thank you!
Here is the patch for this.1=37824
2=
1=true
1=false
2=
This happens with the latest 2013-06-28.
If you have a patch please share it before the next release. Thank you!
==================cut here===========================
--- old/sh/name.c Mon Jun 24 15:37:10 2013
+++ new/sh/name.c Wed Jul 10 14:39:41 2013
@@ -393,6 +393,8 @@
if(array&NV_ARRAY)
{
nv_setarray(np,nv_associative);
+ if(typ)
+ nv_settype(np,typ,0);
}
else
{
==================cut here===========================
David Korn
dgk at research.att.com