Hi!

---

Using integers (or arithmetric expressions) as array index doesn't
work in a namespace with ast-ksh.2013-09-09 on SuSE 12.3/AMD64/64bit:
-- snip --
$ ksh -c 'set -o nounset ; namespace a.b { float -a ar; function f {
integer i=0 ar_i=0 ; for (( i=0 ; i < 5 ; i++ )) ; do (( ar[ar_i++]=i
)) ; done ; printf "%q\n" "${ar[*]}" ; } ; f ;  }'
/home/test001/bin/ksh: f: line 1: ar_i: parameter not set
-- snip --

AFAIK the expected output should be:
-- snip --
'0 1 2 3 4'
-- 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