diff options
| author | Bart Schaefer <schaefer@zsh.org> | 2024-03-05 21:13:33 -0800 |
|---|---|---|
| committer | Bart Schaefer <schaefer@zsh.org> | 2024-03-05 21:13:33 -0800 |
| commit | 330821de01ebf1115079222f719c9a28cc26ff57 (patch) | |
| tree | be31fd1e4672f462e2c3f054e5b3c1fc65fbd566 /Src/params.c | |
| parent | 52685: fix typo in the name of bash's BASH_ENV variable. (diff) | |
| download | zsh-330821de01ebf1115079222f719c9a28cc26ff57.tar zsh-330821de01ebf1115079222f719c9a28cc26ff57.tar.gz zsh-330821de01ebf1115079222f719c9a28cc26ff57.tar.bz2 zsh-330821de01ebf1115079222f719c9a28cc26ff57.tar.lz zsh-330821de01ebf1115079222f719c9a28cc26ff57.tar.xz zsh-330821de01ebf1115079222f719c9a28cc26ff57.tar.zst zsh-330821de01ebf1115079222f719c9a28cc26ff57.zip | |
52692: local typeset of the name of a named reference hides the reference
Diffstat (limited to 'Src/params.c')
| -rw-r--r-- | Src/params.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/params.c b/Src/params.c index 4bcf41c22..973df3fe5 100644 --- a/Src/params.c +++ b/Src/params.c @@ -1034,7 +1034,8 @@ createparam(char *name, int flags) } if (oldpm && !(flags & PM_NAMEREF) && - (!(oldpm->node.flags & PM_RO_BY_DESIGN) || !(flags & PM_LOCAL)) && + (oldpm->level == locallevel ? + !(oldpm->node.flags & PM_RO_BY_DESIGN) : !(flags & PM_LOCAL)) && (oldpm->node.flags & PM_NAMEREF) && (oldpm = upscope(oldpm, oldpm->base))) { Param lastpm; |
