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 39497
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Surprising effect of fun() { local FPATH=...; autoload -X }, and a bug
- Date: Thu, 29 Sep 2016 11:42:45 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ix+V6d78MSl/O2Dfxpw613fFLCe48lEkamAL/VUXE90=; b=0LFGGOBWCkuIT5edDRqr214D3ji58PwFq/m6rQWxmCcvUUtigI2yFUz3aNdakClhhA 726cMHRRN92gwbwXxbt7Sa00f0bKaausKmbLqUbRtG5O5m1opJ1885c8VYSZFIGCDdLZ qZ1lm3V15DaBoFLdtbJ+IUTpMub0fvR18d4kUw5KROPEBtgDrqMuJa7lSa0QISXZ8/iV 4YTPISrlri+vTYOJsNG8P79IP4C6i9lL/DLJ4CytqhItRP2hMA4EFTyS/SvP1lIYZF5v Nk76EKP17UKOQvcdsqKyBpQDlZYS0GOnOExMXBRpIx7M6XoV1SfJyuVjVaffbndm23o8 z5wQ==
- In-reply-to: <160929001004.ZM27686@torch.brasslantern.com>
- 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>
I will go deep into what you wrote, I'm just overloaded with work
currently (while having no day time job hehe) and cannot much divide
focus, however I now encountered the FPATH problem (first time from
the initial email), having a debug print in place. Function uizcm is
loaded via:
eval "function ${(q)func} {
local FPATH=${(qqq)PLUGIN_DIR}:${(qqq)FPATH}
builtin autoload -X ${(q-)opts[@]}
}"
It has:
echo "FPATH: $FPATH" >> /tmp/reply-fp
The FPATH printed always contained required component for
further-autoloading to work, however now – the case caught – it just
didn't. And, I think this is maybe interesting – doing:
FPATH="the required fpath"
in shell, then again invoking Zle widget uizcm via Ctrl-O-Ctrl-U,
yielded working setup. So it's like if once uizcm took FPATH from the
local "FPATH" line in the emulated autoload stub, and once took it
from global scope.
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author