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

Re: compinit as function?



"Andrej Borsenkow" wrote:
> Is there any real reason, why compinit cannot be a function?

One reason is that it wastes memory, since it's quite large and you only
use it once.

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

I've been thinking about this.  It should be easy to add.


$testhash is just what it's name suggests.  It was added because there's
currently no other way of checking that special associative arrays work
properly (in particular being restored after `testhash=... cmd').  It will
eventually disappear.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



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