Hi!

----

During Illumos (OpenSolaris fork) development someone hit an issue
with integer and floating-point arrays (this happens with
ast-ksh.2013-02-22 and many of the older alphas):
Using a string array produces the correct result...
-- snip --
$ ksh -c 'typeset -a ar ; ar+=( 4 ) ; ar+=( 5 6  ) ; print -v ar'
(
        4
        5
        6
)
-- snip --
... but switching over to integer arrays produces garbage:
-- snip --
$ ksh -c 'integer -a ar ; ar+=( 4 ) ; ar+=( 5 6  ) ; print -v ar'
?@
-- snip --

Same happens for "float -a ar" and "typeset -s -i -a ar".

Interestingly the following works as expected:
-- snip --
$ ksh -c 'compound c ; integer -a c.ar ; c.ar+=( 4 ) ; c.ar+=( 5 6  )
; print -v c'
(
        typeset -a -l -i ar=(
                4
                5
                6
        )
)
-- 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

Reply via email to