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