Hi!
----
The following testcase should declare an indexed array of types within a
compound variable:
-- snip --
typeset -T benchcmd_t=(
float x=1
float y=2
)
compound x=(
float o
benchcmd_t -a m
integer h
)
print -v x
-- snip --
IMO the array "x.m" should be empty but when I print the compound
variable "x" with ast-ksh.2009-06-22 I get the following output:
-- snip --
(
typeset -l -i h=0
benchcmd_t -a m=(
[0]=(
typeset -l -E x=1
typeset -l -E y=2
)
)
typeset -l -E o=0
)
-- snip --
... e.g. "x.m" has one array element (which AFAIK shouldn't be there).
... AFAIK the correct output should be:
-- snip --
(
typeset -l -i h=0
benchcmd_t -a m
typeset -l -E o=0
)
-- snip --
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) [email protected]
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users