Clark, what should typeset -a arr[0]=() archive? It is IMO an invalid
operation to try to make an array element another array. It would
require to use a compound variable as array element and then add that
array to that compound variable.

IMO the shell must issue an error for such invalid operations.

Olga

On Fri, Nov 23, 2012 at 6:17 AM, Clark WANG <[email protected]> wrote:
> See following example:
>
> $ echo ${.sh.version}
> Version AJMP 93u+ 2012-08-01
> $ typeset -a arr
> $ typeset -a arr[0]=()
> $ typeset -p arr
> typeset -a arr=(;) )
> $
>
> The final `typeset -p' output is invalid.
>
> _______________________________________________
> ast-users mailing list
> [email protected]
> http://lists.research.att.com/mailman/listinfo/ast-users
>



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     [email protected]   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to