zsh-workers
 help / color / mirror / code / Atom feed
* typeset -U
@ 1997-08-29 20:45 Greg Badros
  0 siblings, 0 replies; only message in thread
From: Greg Badros @ 1997-08-29 20:45 UTC (permalink / raw)
  To: zsh-workers

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@cs.washington.edu
Seattle, WA  USA
http://www.cs.washington.edu/homes/gjb


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-08-29 20:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-29 20:45 typeset -U Greg Badros

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).