Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: autoload with explicit path
- X-seq: zsh-workers 40377
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: autoload with explicit path
- Date: Tue, 17 Jan 2017 16:06:22 -0800 (PST)
- In-reply-to: <20170117221754.GA14818@fujitsu.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20161211221844.5e51affe@ntlworld.com> <CGME20161212160617epcas2p16960e3d95c694147035f760090e6011b@epcas2p1.samsung.com> <161212080550.ZM935@torch.brasslantern.com> <20161212163124.6654f077@pwslap01u.europe.root.pri> <20170110193102.7725620a@ntlworld.com> <20170117183606.5d1db3de@pwslap01u.europe.root.pri> <20170117221754.GA14818@fujitsu.shahaf.local2>
- Reply-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
On Tue, 17 Jan 2017, Daniel Shahaf wrote:
> Peter Stephenson wrote on Tue, Jan 17, 2017 at 18:36:06 +0000:
> > I think this is the right way of doing it as the explicit
> > path should continue to override the more vague autoload with no path
> > indicated, and this is safer in case some code decides it needs a
> > function and inadvertently resets the path the user carefully decided to
> > give the function.
>
> Suppose $^fpath/foo/bar(N) has two matches, how do I explicitly autoload
> the second one? I.e., how do I disambiguate «autoload foo/bar» (with no
> leading slash) to load a particular copy of foo/bar?
How does any of this interact with searching for functions inside files
built with zcompile?
(Does zcompile even support having a function name that contains a slash?)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author