Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Don't perform dereferencing when looking up certain special parameters
- X-seq: zsh-workers 54837
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] Don't perform dereferencing when looking up certain special parameters
- Date: Sun, 21 Jun 2026 17:05:15 -0700
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ch2Lwssz8quwNMzuxf4Fz3tofhWLls9N9RFV2JWq53k=; fh=BgAYDYpL6Ne/A5nWEMVJiHiBtrz8Imz3uf26RDwgQX4=; b=FJmAEtsU9SsvxGpZYgKijde60OcsVg6DarX0lK7GJ8wVs7jHILHV/RnwwY/i6QNVL1 THjS3m9J9bT6nFBRH1OOv86zbX4tcacLkLOoQlRNToup4eSbOiQO1RfkdDpF1IhQ0RY6 Fj9eWvJdjOmXmrvpQ1J5gtYY9ewN0h21yzYKmky4HqreZK0g2jIzForMvH1/Xi3J4jk0 qvHX/0An422/5YMh2/WT2jC8aPpL1HMBhxVJeQySJR0MJcAiEHrtYMMPtiVY4XftRvg8 jmy6szdfn0a9ArEEsu2eSsNHJZ9ED5dFS8CR9MufyHMhjpE/68LEeENZMo5/niPKWoho lgWg==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1782086727; cv=none; d=google.com; s=arc-20240605; b=MQUD+rlLbEDbH13NQY/uFxPoePiS5JOjDKJgnFLbmn2ylGh3aFlIq8GpJwzNxPfqTl asziiZ7onvvcA4zNEXgKa3OKuJCHGxsHEYhWYeS6GcnrEJXfA8kuGUXQqf4qH38yHKBp JbGUHtxjZNKMoCpp6TJU3CJRmvCDvc7hORcnsjvHKskJQb570qbl6R7kund/EvCHNQv1 CVJjBXN70OjxCXcxrV6Gr5K+SWVWJ8895mn4xhEV8K/s2azT5Ciap3lRNlhSJSywdWX1 bnQdzzb0FoWomZfNX67VQ6Y6arQEfvQXOV0pRvFVrQKec4MxeL5F2gkcM2kjXSg2SL+U Kmow==
- Archived-at: <https://zsh.org/workers/54837>
- In-reply-to: <CAGdYchtgyKgyixgaV0Z=oUiqXUY7dLD92UtVmoYt0LEpCee9hA@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAGdYchtgyKgyixgaV0Z=oUiqXUY7dLD92UtVmoYt0LEpCee9hA@mail.gmail.com>
I should perhaps have looked more closely at this before committing it.
On Tue, May 5, 2026 at 4:08 PM Philippe Altherr
<philippe.altherr@xxxxxxxxx> wrote:
>
> The code managing a number of special parameters performs dereferencing while looking up the parameter. This often leads to bogus behavior.
> In this case, the wrong parameter is exported. In many cases, the fix is to simply not perform any dereferencing, which is what the following patch does for a number of special parameters.
A side-effect of switching from paramtab->getnode() to
realparamtab->getnode2() is that the call to loadparamnode() is
bypassed. That came from
workers/53781: fix loading of autoload variable via a reference
I suspect this is OK in the specific circumstances. Calling it out in case not.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author