Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Don't export hidden parameters
- X-seq: zsh-workers 54999
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] Don't export hidden parameters
- Date: Sun, 19 Jul 2026 14:23:39 -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-20260327; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+xeXOBgZVc8R8ouq1Ofj/7X6LPAGBsuIK3VSfac8XWA=; fh=BgAYDYpL6Ne/A5nWEMVJiHiBtrz8Imz3uf26RDwgQX4=; b=kWafBbMMAZPoAK/TZODIw0YdbhTiDNu0kpcNr5CfWoVx51C063wQVmZRREWcfUQIXr oW1mpugJL4p8o8tMQ5+XOCfTItFREAdvNcGLNc8AwLmxM6uuAyqcqpRs77FqMXgGOePi GWkopZ16pxS0CZ1pQRPHrNANlLnht0FFAU/Q7luTKzPjZOelTcrJwPwRNjbk480Ub63c Im3QM8zMIY2q9+DMiL5k3IyX4nkxvUvOPG4VtPZHYlC61UWNedMLMWcx8+L7HR9/WUrj +Igk5/WokeFsy7h9rS8dZOPn2gmuLOHFzuijthDOJqE7F7FawydbXEwvs4YgxptlbDVK dMBA==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1784496231; cv=none; d=google.com; s=arc-20260327; b=T4UQ80n3r4NUwKekiL/Xsb9MQWxIERg8H3v0soHDzrNLJHA78TtsU6sXurWaF4CTGt TET+ppzz0K4lJ1e7Hq34soZ+PG+xukhyuc3x0x5IM6jqbLrc03rjIdPnXaQ4CrjDXyrz mXGtCULD/Xht/nEFbDOwPoa6oPyf0jEVNWpU1FVx1e9jrJakI+bEwtMfuB2zwuOURZWU 6nZOx7VaKaAWy9velvh960yTmqk+a51H6H8on612gnzG4dOY08CyZchUQ2ySw05pDNjj vPnPrdj141pKw5Zro1qeuvNyawhOHDkKX3HNsuiCtz0hWm2x1jHoGlCCTeApjLSYDgta o8iw==
- Archived-at: <https://zsh.org/workers/54999>
- In-reply-to: <CAGdYchuCjB+y=ekYnbb-daj1hkd8jdDTsBiBT=UhDPdUGM0R8Q@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAGdYchuCjB+y=ekYnbb-daj1hkd8jdDTsBiBT=UhDPdUGM0R8Q@mail.gmail.com>
On Sun, Jul 19, 2026 at 6:08 AM Philippe Altherr
<philippe.altherr@xxxxxxxxx> wrote:
>
> Whenever an -x flagged parameter is updated, the precomputed environment must be updated. However, if the updated -x flagged parameter is hidden by a same name local parameter, then the -x flagged parameter is not supposed to show up in the environment and therefore no environment update should be performed.
I don't have time to construct a test case today, but what's the
effect of this change when:
-- the exported parameter is a special, and
-- the local parameter is preserving the special-ness
(that is, not declared local -h or was local +h)
Thinking in particular of PATH, MANPATH, FPATH, and WATCH
Messages sorted by:
Reverse Date,
Date,
Thread,
Author