zsh-workers
 help / color / mirror / code / Atom feed
* compinit as function?
@ 1999-04-14 12:23 Andrej Borsenkow
  1999-04-14 12:38 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Andrej Borsenkow @ 1999-04-14 12:23 UTC (permalink / raw)
  To: ZSH workers mailing list

Is there any real reason, why compinit cannot be a function?

The only problem as far as I can see is, that it defines several global
AA's - and current typeset's will make them local.

One workaround is to use

: ${(AA)hash:=}

(it is ugly, but it works)

Another possibility is to add the global flag to typeset: typeset -g. Can it
be useful in other cases?

Having compinit as function will allow to simply drop the whole stuff in
auoloaded fpath - and don't worry about path to compinit anymore. Of course,
then some other standard path to dump file is needed.

/andrej


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-04-14 13:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-14 12:23 compinit as function? Andrej Borsenkow
1999-04-14 12:38 ` Peter Stephenson
1999-04-14 13:13   ` Andrej Borsenkow

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).