Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: DEBUG trap and warn_create_global
- X-seq: zsh-workers 42083
- From: Matthew Martin <phy1729@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: DEBUG trap and warn_create_global
- Date: Tue, 5 Dec 2017 20:18:05 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7cPTM9vNpbIuuB41D13+DZSKmvDUGR2mzyqjKq48i6Y=; b=PtTy9XtDrE+ebchMYydkDc6W7BtySieqIXdk1ZSA0UJLcOBWwE4JsLOYy1hfL0Dag3 hcVE/LbvKjJx9JSS52tBwZOafrjt0dn/kJHFzYLMNdRY2tYkCzbCEg2oZQf/ktmxgzrk hgkrKrRNhX+xSzuK+BWxkQEPEja9peqJNU8lImyLmtbbpE5po8sS5wxkLVxxjSeGfM32 JQVmQnBiI7QKNhyyMSlkI+nZ1aVf0glvuS6nqGrxLpCk4bJGDdS7+WZJcqFBqxBlZlau aKa/pPPjI7jqea9SWMd8VU9BemWT+R38ymEbIfXriqVFy9t/1bvNhs4ObqqTFgbS9j4i viEg==
- In-reply-to: <CAH+w=7bqzeHZZDPSSxR4wmueA0BPDgSGL9zi549rO0dHw=dm8Q@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>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20171120040845.GA37154@CptOrmolo.darkstar> <CAH+w=7bqzeHZZDPSSxR4wmueA0BPDgSGL9zi549rO0dHw=dm8Q@mail.gmail.com>
On Mon, Nov 20, 2017 at 05:45:11PM -0800, Bart Schaefer wrote:
> On Sun, Nov 19, 2017 at 8:08 PM, Matthew Martin <phy1729@xxxxxxxxx> wrote:
> >
> > I would think ZSH_DEBUG_CMD is local to the trap execution. Otherwise
> > DEBUG traps can "break" warn_create_global clean functions.
>
> Hm. Making it implicitly local would change the behavior with respect
> to "unset after the trap." I don't know how important that is.
>
> However, it should be possible for it to be set without tripping the
> warning, we just need to call assignsparam() instead of setsparam().
This solves the example provided (and the original issue[1]). I have no
strong opinion on changing the documented behavior, so it should
probably be kept as is.
1: https://github.com/zsh-users/zsh-syntax-highlighting/issues/438
Messages sorted by:
Reverse Date,
Date,
Thread,
Author