Hi!
----
Another typeset -m testcase:
-- snip --
# stack of objects
compound c=(
compound sta=(
compound -a st
integer st_numelements=0
)
)
function main
{
compound foo=( integer t=3 )
typeset -m "c.sta.st[$((c.sta.st_numelements++))].obj=foo"
print -v c
return 0
}
set -o nounset
main
exit $?
-- snip --
ast-ksh.2013-04-09 on SuSE 12.2/AMD64/64bit prints this for the testcase:
-- snip --
$ ksh stackobj.sh
(
sta=(
typeset -C -a st=(
[0]=(
obj=(
typeset -l -i t=3
)
)
typeset -l -i _numelements=1
)
)
)
-- snip --
Note the cripped variable name " _numelements" which should be
"st_numelements" ...
Maybe this specific bug may cause a lot of other trouble around "typeset -m" ...
----
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]
http://lists.research.att.com/mailman/listinfo/ast-developers