It took me a few hours to figure this out. :( See followng example:
$ echo $KSH_VERSION
Version JMP 93u+ 2012-02-29
$ typeset -a arr=( ( 00 ) ( 01 ) ( 02 ) ( 03 ) ( 04 ) ( 05 ) ( 06 ) ( 07 )
( 08 ) ( 09 ) ( 10 ) )
$ typeset -i i j
$ i=9
$ j=0
$ echo ${arr[i][j]} <== No problem if i < 10
09
$ i=10
$ echo ${arr[i][j]} <== Oops!
ksh.120229_93u+: : invalid character in expression - invalid character in
expression - i
$ echo ${arr[i][0]} <== But this works!
10
$ echo ${arr[i]} <== And this is fine!
10
$
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users