about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2023-07-26 20:27:51 -0700
committerBart Schaefer <schaefer@zsh.org>2023-07-26 20:27:51 -0700
commitc4cfb674653996e68830022c7066f19ce78421b5 (patch)
treea95e38460279ad4dad3eb88a3652f9e97d3ff622
parentbaa19d2a85758d6b6bcbcd8b78f065a3be262fb3 (diff)
downloadzsh-c4cfb674653996e68830022c7066f19ce78421b5.tar.gz
zsh-c4cfb674653996e68830022c7066f19ce78421b5.tar.xz
zsh-c4cfb674653996e68830022c7066f19ce78421b5.zip
unposted (cf. 51968): improve documentation of typeset -gn and -r
-rw-r--r--ChangeLog3
-rw-r--r--Doc/Zsh/builtins.yo4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f0b6e8c4b..c62a3da34 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2023-07-26  Bart Schaefer  <schaefer@zsh.org>
 
+	* unposted (cf. 51968): Doc/Zsh/builtins.yo: improve description
+	of typeset -gn and -r
+
 	* 51945: Doc/Zsh/builtins.yo, Doc/Zsh/expn.yo, Doc/Zsh/params.yo,
 	Src/builtin.c, Src/params.c, Test/K01nameref.ztst: improve named
 	references documentation, fixes for typeset -r and -g behavior,
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 33b13ac16..5eb93272a 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -1924,8 +1924,8 @@ redef(SPACES)(0)(tt(ifztexi(NOTRANS(@ @ @ @ @ @ @ @ ))ifnztexi(        )))
 xitem(tt(typeset )[ {tt(PLUS())|tt(-)}tt(AHUaghlmrtux) ] \
 [ {tt(PLUS())|tt(-)}tt(EFLRZip) [ var(n) ] ])
 xitem(SPACES()[ tt(+) ] [ var(name)[tt(=)var(value)] ... ])
-xitem(tt(typeset )[ {tt(PLUS())|tt(-)}tt(n) ] \
-[ tt(-gr) ] [ var(name)[tt(=)var(value)] ... ])
+xitem(tt(typeset ){tt(PLUS())|tt(-)}tt(n) [ tt(-g) ] \
+[ {tt(PLUS())|tt(-)}tt(r) ] [ var(name)[tt(=)var(value)] ... ])
 xitem(tt(typeset )tt(-T) [ {tt(PLUS())|tt(-)}tt(Uglrux) ] [ {tt(PLUS())|tt(-)}tt(LRZp) [ var(n) ] ])
 xitem(SPACES()[ tt(+) | var(SCALAR)[tt(=)var(value)] var(array)[tt(=LPAR())var(value) ...tt(RPAR())] [ var(sep) ] ])
 item(tt(typeset) tt(-f) [ {tt(PLUS())|tt(-)}tt(TUkmtuz) ] [ tt(+) ] [ var(name) ... ])(