Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: newuser in 4.3.0-dev-4 (Was: PATCH: newuser system)
- X-seq: zsh-workers 22291
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: newuser in 4.3.0-dev-4 (Was: PATCH: newuser system)
- Date: Mon, 20 Feb 2006 11:09:17 +0000
- In-reply-to: <slrndvfvkm.2qm.mason@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200602181257.k1ICvcnk028384@xxxxxxxxxxxxxxxxx> <slrndvfvkm.2qm.mason@xxxxxxxxxxxxxxxxx>
Geoff Wing wrote:
> Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> typed:
> :> Currently, for "b)", I get the effect of "which zsh-newuser-install" to th
> e
> :> screen twice.
> : I wasn't able to reproduce that.
>
> Ah, OK, I've broken it down to a badly written/parsed expression in my
> /etc/zshrc which effectively does
>
> autoload -U
> autoload -U compinit
> compinit
>
> with no function name in the first command. Don't know what should happen
> there. Shouldn't it barf on it?
No, "autoload -U" is valid; autoload is historically derived from
functions -u which is derived from typeset -f... it's a little more
complicated nowadays since the options are different, but it's still the
case that running any of those commands with no non-option arguments
displays a list of whatever entity it is that has the specified flags
set, in this case autoloaded functions.
I'm a bit surprised to see it shows functions that have already been
autoloaded, however... it seems the presence of the -U flag makes it
(also) show functions that were previously autoloaded with that flag
set. Conceivably this is useful.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
Messages sorted by:
Reverse Date,
Date,
Thread,
Author