Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATH: autoload with explicit path
On Sat, 28 Jan 2017, Peter Stephenson wrote:
> On Sat, 28 Jan 2017 10:05:46 -0800 (PST)
> Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> > If every autoload were relative to the absolute-path information of the
> > calling function context, Sebastian's plan would work without needing
> > to edit anything, provided that he autoloads the bootstrap function with
> > an absolute path.
>
> I'm afraid this is just confusing matters. Sebastian was asking for a
> new option.
Well yes, the option would be on the autoload of the bootstrap function,
i.e.,
autoload -P /some/hard/path/foo
where "foo" in turn calls "autoload bar" would cause the autoload of bar
to inherit /some/hard/path from foo.
> There's no question of changing the default behaviour
Indeed not.
("-P" chosen for example only and entirely without reference to whether it
conflicts with some other use of -P in typeset/functions/etc.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author