Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: autoload with explicit path
On Wed, 18 Jan 2017, Peter Stephenson wrote:
> On Tue, 17 Jan 2017 22:17:54 +0000
> Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> > 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?
>
> You don't; the mechanism only applies to the last path component so it
> will pick the latest version of "bar".
I think the implied question was "Given that this works if I don't use
an explicit path, why isn't there a way for it to work when I do want
to give an explicit path? (Now that explicit paths work at all.)"
Where "this works" means having a function name with a slash in it.
I think it's a rather rare case that we may not want to bother with, but
we've bothered with all sorts of other rarities.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author