Discussion:
[ast-developers] namespace issues with compound array elements...
Roland Mainz
2013-07-07 00:05:06 UTC
Permalink
Hi!

----

The following testcase...
-- snip --
$ ~/bin/ksh -c 'namespace sp1 { compound -a c=( [4]=( bool b=true) ) }
; print -v .sp1.c '
-- snip --
... should AFAIK print...
-- snip --
(
[4]=(
_Bool b=true
)
)

-- snip --
... but ast-ksh.2013-06-28 on SuSE 12.3/AMD64/Linux prints:
-- snip --
(
[4]=(
)
)
-- snip --

The same issue happens for associative arrys (compound -A ...) and 3D
arrays (compound -a ar=( [4][16][64]=( ...))) ...

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Loading...