Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

typeset -U



Is typeset -U supposed to act like this:

$ echo $ZSH_VERSION
3.0.4
$ typeset -U array
$ array=(foo bar)
$ echo $array $#array
foo bar 2
$ array=($array foo)    # HERE
$ echo $array $#array
foo bar foo 3           # WHY?
$ typeset -U array
$ echo $array $#array
foo bar 2


I would've thought that the typeset would've not allowed the second copy
of foo when I assigned it at "HERE" above.

It also acts this way w/ 3.0.0 w/ my colorized completion patch (don't
have any other stock builds lying around).

Greg J. Badros
gjb@xxxxxxxxxxxxxxxxx
Seattle, WA  USA
http://www.cs.washington.edu/homes/gjb



Messages sorted by: Reverse Date, Date, Thread, Author