$ echo ${.sh.version}
Version JMP 93u+ 2012-02-14
$ arr=( )
$ echo "$arr"
(
)    <---- ???
$ typeset -a arr=( )    <-- But this works fine.
$ echo "$arr"

$

Another case:

$ typeset -a arr=( ( 11 22 33 ) ( 44 55 ) )
$ arr[1]+=( 66 )
$ echo ${arr[1][@]}
44 55 66
$ arr[1]=( )    <-- Here I want to set arr[1] to an empty array
ksh-20120214: 1: invalid variable name
$
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to