Re: [PATCH] Don't export hidden parameters

Bart Schaefer <[email protected]> Sun, 19 Jul 2026 14:23:39 -0700
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <CAH+w=7aqSozQeus-WvO3PNhkoTtZ9LVq+r8S4BFfnc3tCL5efA@mail.gmail.com>
On Sun, Jul 19, 2026 at 6:08=E2=80=AFAM Philippe Altherr
<[email protected]> 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