about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2024-03-05 21:13:33 -0800
committerBart Schaefer <schaefer@zsh.org>2024-03-05 21:13:33 -0800
commit330821de01ebf1115079222f719c9a28cc26ff57 (patch)
treebe31fd1e4672f462e2c3f054e5b3c1fc65fbd566 /Doc
parentb56250e9b99d9cd0e70261ff6e7f6f33583c1b04 (diff)
downloadzsh-330821de01ebf1115079222f719c9a28cc26ff57.tar.gz
zsh-330821de01ebf1115079222f719c9a28cc26ff57.tar.xz
zsh-330821de01ebf1115079222f719c9a28cc26ff57.zip
52692: local typeset of the name of a named reference hides the reference
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/params.yo5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo
index 8c5e67e70..d179a0d1d 100644
--- a/Doc/Zsh/params.yo
+++ b/Doc/Zsh/params.yo
@@ -670,8 +670,9 @@ This manual was generated with Zsh tt(version()).
 When a em(named reference) is created with `tt(typeset -n)', all uses
 of var(pname) in assignments and expansions instead assign to or
 expand var(rname).  This also applies to `tt(unset )var(pname)' and to
-most subsequent uses of `tt(typeset)' with the exception of
-`tt(typeset -n)' and `tt(typeset +n)', so to remove a named reference,
+most subsequent uses of `tt(typeset)' with the exceptions of declaring
+a local in a called function, or updating a current-scope parameter with
+`tt(typeset -n)' or `tt(typeset +n)'. Thus to remove a named reference,
 use either `tt(unset -n )var(pname)' (preferred) or one of:
 ifzman()
 example(tt(typeset -n )var(pname=)