Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] parameter Module - functions_source associative array not working
- X-seq: zsh-workers 43039
- From: dana <dana@xxxxxxx>
- To: franciscodezuviria@xxxxxxxxx
- Subject: Re: [BUG] parameter Module - functions_source associative array not working
- Date: Sun, 17 Jun 2018 14:33:50 -0500
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=5L1VxbiKfRF3mXwoWbgK5e3po/uoTkKyZLb1u2sEJdo=; b=p290cMF9MQt0V3+J+OxWrMBR72gw8+SP1CQ6++fhuXMjWtBMQg6PjYC6aYyZueMmWw u5GPlxe2emuKG0NvfUC0nRptEQLVBRFytI3VfT2Ye2cIF8XSO5t94tcvkGI7+QyD07wZ ZjckCQS8HcOH3lSWTLwDA30qGBYmjnAMbz3L7wStGAQ41WUxpgEgk98OStTfojJu5l3q qUb3QwBEHX5PZLCq0xgvFr1muUS2C4IzXUe+2nnc1hqJK0HRDfxSQODjtrYO5DM0N6AT TaiZMmgbRFEPj+Avn1OtvDFpK3pEwtiPy0/4a/7Q3IRJWNj4OLuXoX54ufBElpoQM1hs xAmw==
- In-reply-to: <CA++-COx5fN=_+odJjfEkdBkfaWPKgtUGdESo5WvWVbz1fOXENQ@mail.gmail.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>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CA++-COx5fN=_+odJjfEkdBkfaWPKgtUGdESo5WvWVbz1fOXENQ@mail.gmail.com>
On 16 Jun 2018, at 22:12, Francisco de Zuviría Allende <franciscodezuviria@xxxxxxxxx> wrote:
>Versions 5.3 and 5.5
>
>Can't get functions_source to work.
AFAIK it wasn't introduced until 5.4, so that's probably expected in the former
case.
I can confirm that it behaves strangely in 5.4.2 and 5.5.1 — that seems to be
because it's not marked for auto-loading. The included patch fixes it (along
with dis_functions_source and usergroups); in the mean time you can kick it into
existence by running `zmodload -F zsh/parameter +p:functions_source` (or just
reloading the module entirely).
dana
diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c
index 10c47d214..783c36df3 100644
--- a/Src/Modules/parameter.c
+++ b/Src/Modules/parameter.c
@@ -2190,6 +2190,7 @@ static const struct gsu_array dirs_gsu =
static const struct gsu_array historywords_gsu =
{ histwgetfn, arrsetfn, stdunsetfn };
+/* Make sure to update autofeatures in parameter.mdd if necessary */
static struct paramdef partab[] = {
SPECIALPMDEF("aliases", 0,
&pmraliases_gsu, getpmralias, scanpmraliases),
diff --git a/Src/Modules/parameter.mdd b/Src/Modules/parameter.mdd
index a91a5dc09..f71c17a72 100644
--- a/Src/Modules/parameter.mdd
+++ b/Src/Modules/parameter.mdd
@@ -2,6 +2,6 @@ name=zsh/parameter
link=either
load=yes
-autofeatures="p:parameters p:commands p:functions p:dis_functions p:funcfiletrace p:funcsourcetrace p:funcstack p:functrace p:builtins p:dis_builtins p:reswords p:dis_reswords p:patchars p:dis_patchars p:options p:modules p:dirstack p:history p:historywords p:jobtexts p:jobdirs p:jobstates p:nameddirs p:userdirs p:aliases p:dis_aliases p:galiases p:dis_galiases p:saliases p:dis_saliases"
+autofeatures="p:parameters p:commands p:functions p:dis_functions p:functions_source p:dis_functions_source p:funcfiletrace p:funcsourcetrace p:funcstack p:functrace p:builtins p:dis_builtins p:reswords p:dis_reswords p:patchars p:dis_patchars p:options p:modules p:dirstack p:history p:historywords p:jobtexts p:jobdirs p:jobstates p:nameddirs p:userdirs p:usergroups p:aliases p:dis_aliases p:galiases p:dis_galiases p:saliases p:dis_saliases"
objects="parameter.o"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author