From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk
Subject: Re: newuser in 4.3.0-dev-4 (Was: PATCH: newuser system)
Date: Mon, 20 Feb 2006 11:09:17 +0000 [thread overview]
Message-ID: <EXCHANGE032S3AXXEjK0000ee6a@exchange03.csr.com> (raw)
In-Reply-To: <slrndvfvkm.2qm.mason@g.primenet.com.au>
Geoff Wing wrote:
> Peter Stephenson <p.w.stephenson@ntlworld.com> 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@csr.com> 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
prev parent reply other threads:[~2006-02-20 11:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-23 11:13 PATCH: newuser system Peter Stephenson
2005-11-24 6:00 ` Bart Schaefer
2005-11-24 6:17 ` Clint Adams
2005-11-24 6:28 ` Danek Duvall
2005-11-24 11:42 ` Peter Stephenson
2005-11-24 18:20 ` Bart Schaefer
2005-11-25 10:24 ` Peter Stephenson
2005-11-26 23:18 ` Bart Schaefer
2005-11-24 18:52 ` Wayne Davison
2005-11-29 1:58 ` Geoff Wing
2006-02-18 8:42 ` newuser in 4.3.0-dev-4 (Was: PATCH: newuser system) Geoff Wing
2006-02-18 12:57 ` Peter Stephenson
2006-02-19 5:13 ` Geoff Wing
2006-02-20 11:09 ` Peter Stephenson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=EXCHANGE032S3AXXEjK0000ee6a@exchange03.csr.com \
--to=pws@csr.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).