about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2022-10-23 16:25:04 -0700
committerBart Schaefer <schaefer@zsh.org>2022-10-23 16:25:04 -0700
commit6b5ee0c17c817f12537ab7d3e5027b015f8f9475 (patch)
treebf47b2ea44f786df4fb1c4e8549ee201487c73f0
parenta7e4394d1b06cbd004c85b5fecfe864eb93b4385 (diff)
downloadzsh-6b5ee0c17c817f12537ab7d3e5027b015f8f9475.tar.gz
zsh-6b5ee0c17c817f12537ab7d3e5027b015f8f9475.tar.xz
zsh-6b5ee0c17c817f12537ab7d3e5027b015f8f9475.zip
users/28243: update "typeset +" documentation
-rw-r--r--ChangeLog6
-rw-r--r--Doc/Zsh/builtins.yo8
2 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 0c11fe53b..b97244f68 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
-2022-10-22  Bart Schaefer  <schaefer@Macadamia>
+2022-10-23  Bart Schaefer  <schaefer@zsh.org>
+
+	* users/28243: Doc/Zsh/builtins.yo: update "typeset +" doc
+
+2022-10-22  Bart Schaefer  <schaefer@zsh.org>
 
 	* 50714: Completion/Unix/Command/_git (_git-diff): also complete
 	in the 2nd argument position anything that could be in the 1st.
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 641e46cf9..dd54a0fc8 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -2047,8 +2047,9 @@ startitem()
 item(tt(PLUS()))(
 If `tt(PLUS())' appears by itself in a separate word as the last option,
 then the names of all parameters (functions with tt(-f)) are printed, but
-the values (function bodies) are not.  No var(name) arguments may appear,
-and it is an error for any other options to follow `tt(PLUS())'.  The
+the values (function bodies) are not.  If var(name) arguments appear,
+both those names and their values are printed in the form of assignments.
+It is an error for any other options to follow `tt(PLUS())', but the
 effect of `tt(PLUS())' is as if all attribute flags which precede it were
 given with a `tt(PLUS())' prefix.  For example, `tt(typeset -U PLUS())' is
 equivalent to `tt(typeset +U)' and displays the names of all arrays having
@@ -2081,7 +2082,8 @@ Except when assignments are made with var(name)tt(=)var(value), using
 tt(+m) forces the matching parameters and their attributes to be printed,
 even inside a function.  Note that tt(-m) is ignored if no patterns are
 given, so `tt(typeset -m)' displays attributes but `tt(typeset -a +m)'
-does not.
+does not.  Ordinary scalar string parameters have no attributes, so for
+those tt(+m) prints only the names.
 )
 item(tt(-p) [ var(n) ])(
 If the tt(-p) option is given, parameters and values are printed in the