On Sun, Apr 21, 2013 at 12:25 AM, Roland Mainz <[email protected]> wrote:
> Another "typeset -M" testcase:
> The following one-liner...
> -- snip --
> $ ksh -c 'typeset -T x_t=( compound xc ) ; compound c ; x_t c.a ;
> typeset c.a.xc.i=5 ; x_t c.b ; typeset -m "c.b.xc.j=c.a.xc.i" ; print
> -v c'
> -- snip --
> ... should AFAIK print...
> -- snip --
> (
> x_t a=(
> xc=(
> )
> )
> x_t b=(
> xc=(
> j=5
> )
> )
> )
> -- snip --
> ... but ast-ksh.2013-04-09 prints on SuSE 12.2/64bit/AMD64:
> -- snip --
> (
> x_t a=(
> )
> x_t b=(
> xc=(
> j=5
> )
> )
> )
> -- snip --
> ... note that the compound variable "c.a.xc" seems to be removed by
> typeset -m (which should _not_ happen)
The same happens if I use a compound variable instead of a type:
-- snip --
$ ksh -c 'compound c ; compound c.a ; compound c.a.xc ; typeset
c.a.xc.i=5 ; compound c.b ; compound c.b.xc ; typeset -m
"c.b.xc.j=c.a.xc.i" ; print -v c'
(
a=(
)
b=(
xc=(
j=5
)
)
)
-- snip --
----
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