Hi!

----

Is there a reason that ksh93 (ast-ksh.2008-02-02) obmits empty arrays in
the compound variable view ?

For example the following script...
-- snip --
typeset filename="foo/bar"

typeset scan=(
    typeset -A records
)

scan.records[${filename}]=(
        typeset filename="$filename"
        typeset -a comments
)

print -r -- "${scan}"
-- snip --
... prints:
-- snip --
(
        typeset -A records=(
                [foo/bar]=(
                        filename=foo/bar
                )
        )
)
-- snip --
... while we expected:
-- snip --
(
        typeset -A records=(
                [foo/bar]=(
                        filename=foo/bar
                        typeset -a comments=()
                )
        )
)
-- snip --

Why is the "comments" array missing in this case ?

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [EMAIL PROTECTED]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to