Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Surprising effect of fun() { local FPATH=...; autoload -X }, and a bug
- X-seq: zsh-workers 39524
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Surprising effect of fun() { local FPATH=...; autoload -X }, and a bug
- Date: Fri, 30 Sep 2016 11:16:53 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=xr64VZbgXgXgSEKfxfkE9CDTGN2mW1hkQYtwWiEsZaI=; b=OMJr5RgQNNTnXsjw0uqW01eFTxwnoS1TkI1YWW7lME9XW8ltPUyNc4X72fIuPlat6G TiF/psKJ0CgRyDJHJ7vVLPBe82pF8ww2CtmTNAiawvLmy9JzRd37ngRSHRCEWcllxoD4 3QZ2fW6OxRvAN2Jj37C9bMe4E+h9+I+d+1vYVzWStBwZ+DXprdrHjPwq9chKAkiH839J 6j8/dg3eWn6vA06TJ34VNjmTVfEFf8mKZ6KK/Wryp2C5Q7rppaEGJhdPvQlkA/D3A2sF juup+vNQ/ZKpuASDJYK1rA4L9uT5cvP7EAx0l9sfm+oHbMv9GYbv+u59kyEKWXTEK4lg jxsA==
- In-reply-to: <20160930064941.GA23665@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: <CAKc7PVCXq6jQe2gF-Hb4UFBx7UXxRE=3_8Z2Oyq-H6d0LoNLAA@mail.gmail.com> <160929001004.ZM27686@torch.brasslantern.com> <CAKc7PVCJ4RJjiV7u-9MYrZMKC-G4b5mhFM4o7rcQ7xmkEmRzvA@mail.gmail.com> <160929145022.ZM12459@torch.brasslantern.com> <20160930064941.GA23665@fujitsu.shahaf.local2>
On Sep 30, 6:49am, Daniel Shahaf wrote:
}
} Would it work to declare FPATH as a private in the wrapper? (Using
} zsh/param/private)
}
} Sebastian said on IRC it wouldn't work but I don't see why.
It would work, but it doesn't help -- there's a three-stage process:
1. autoload wrapper creates stub function containing local FPATH
2. stub function runs using that FPATH to load the real function
3. real function runs and calls real autoload instead of wrapper
The problem Sebastian wants to address is, how to get *this* real
function to call the wrapper autoload *without* forcing all usages
of autoload to call the wrapper.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author