David, do you have a patch for this problem?

Olga

On Sat, Apr 27, 2013 at 1:03 PM, Roland Mainz <[email protected]> wrote:
> Hi!
>
> ----
>
> The following testcase shows an issue with print -v when printing a 2D
> compound array with an empty compound variable as member of an array
> node:
> -- snip --
> function main
> {
>         compound c
>         compound -a c.cx
>         nameref n=c.cx[4][9]
>         compound n.ca
>
>         #typeset -p c.cx[4][9].ca
>
>         [[ -v c.cx[4][9].ca ]] || print '-v did not find c.cx[4][9].ca'
>         [[ -v          n.ca ]] || print '-v did not find n.ca'
>
>         [[ "$(print -v c)" == *ca* ]] || print 'print -v does not
> print c.cx[4][9].ca'
>         [[ "$(print -C c)" == *ca* ]] || print 'print -C does not
> print c.cx[4][9].ca'
>
>         print -v c
> }
>
> # program start.
> set -o nounset
>
> main
> -- snip --
>
>
> AFAIK the correct output should look like this:
> -- snip --
> (
>         typeset -C -a cx=(
>                 typeset -a [4]=(
>                         [9]=(
>                                 typeset -C ca
>                         )
>                 )
>         )
> )
> -- snip --
> ... but ast-ksh.2013-04-22 prints:
> -- snip --
> print -v does not print c.cx[4][9].ca
> print -C does not print c.cx[4][9].ca
> (
>         typeset -C -a cx=(
>                 typeset -a [4]=(
>                         [9]=(
>                         )
>                 )
>         )
> )
> -- 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



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     [email protected]   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to