Hi!

----


AFAIK the following seems to be a bug in the output of "print -v" for
compound variables and the "-v" operator of the "test" builtin:
-- snip --
$ ksh93 -c 'compound x=( integer x ; ) ; [[ ! -v x.x ]] && print
notthere ; print -v x ; typeset -p x.x'
notthere
(
)
typeset -l -i x.x
-- snip --
This seems to be a bit inconsistent: "print -v x" should include the
type declaration (e.g. "typeset -l -i x")+default value for "x.x" and [[
-v x.x ]] should return "true".

AFAIK the expected output should be:
-- snip --
(
        typeset -l -i x=0
)
typeset -l -i x.x
-- snip --
... e.g. "[[ ! -v x.x ]]" should return false in this case and "print -v
x" should include "x.x".

----

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

Reply via email to