Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Don't export hidden parameters



On Mon, Jul 20, 2026 at 3:45 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
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

I will have to look into that in light of your explanations in workers/55016.

Philippe



Messages sorted by: Reverse Date, Date, Thread, Author