about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2017-10-17 17:59:01 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2017-10-17 17:59:06 +0000
commit3b0c8bdac8930712c2f7ee7fd0b737de2185144f (patch)
tree17c8d51cedb0b8a42dc5a71bef664a2a4b6ed88f
parentab377742664cafb0dc598b5150fdc0ed0446ebad (diff)
downloadzsh-3b0c8bdac8930712c2f7ee7fd0b737de2185144f.tar.gz
zsh-3b0c8bdac8930712c2f7ee7fd0b737de2185144f.tar.xz
zsh-3b0c8bdac8930712c2f7ee7fd0b737de2185144f.zip
unposted: Document "typeset -p"'s optional argument in the inline synopsis.
-rw-r--r--ChangeLog5
-rw-r--r--Doc/Zsh/builtins.yo4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 421091937..8feffbf1d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-10-17  Daniel Shahaf  <d.s@daniel.shahaf.name>
+
+	* unposted: Doc/Zsh/builtins.yo: Document "typeset -p"'s optional
+	argument in the inline synopsis.
+
 2017-10-16  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* gi1242+ZSH: 41907: Completion/Debian/Command/_deborphan:
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index a2ddd4495..ea3f3a394 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -1980,14 +1980,14 @@ 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.
 )
-item(tt(-p))(
+item(tt(-p) [ var(n) ])(
 If the tt(-p) option is given, parameters and values are printed in the
 form of a typeset command with an assignment, regardless of other flags
 and options.  Note that the tt(-H) flag on parameters is respected; no
 value will be shown for these parameters.
 
 tt(-p) may be followed by an optional integer argument.  Currently
-only the value 1 is supported.  In this case arrays and associative
+only the value tt(1)) is supported.  In this case arrays and associative
 arrays are printed with newlines between indented elements for
 readability.
 )