about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2019-12-21 15:58:28 +0000
committerDaniel Shahaf <danielsh@apache.org>2019-12-22 03:21:07 +0000
commit105ca83aa2e8c16df4f83754f8b43f349032650c (patch)
tree8a757cbe7ed69f826fa36f2aa8768055f710db3e /Doc
parent6e5bba8cbac0b605f3e4d68a2fc123ad0beb1b55 (diff)
downloadzsh-105ca83aa2e8c16df4f83754f8b43f349032650c.tar.gz
zsh-105ca83aa2e8c16df4f83754f8b43f349032650c.tar.xz
zsh-105ca83aa2e8c16df4f83754f8b43f349032650c.zip
45112: zshmodules: Explicitly document the return values of the 'zstyle' getters -s, -b, and -a.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/mod_zutil.yo6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/Zsh/mod_zutil.yo b/Doc/Zsh/mod_zutil.yo
index fa1f7b3ea..1e35d2245 100644
--- a/Doc/Zsh/mod_zutil.yo
+++ b/Doc/Zsh/mod_zutil.yo
@@ -81,17 +81,23 @@ item(tt(zstyle -s) var(context) var(style) var(name) [ var(sep) ])(
 The parameter var(name) is set to the value of the style interpreted as a
 string.  If the value contains several strings they are concatenated with
 spaces (or with the var(sep) string if that is given) between them.
+
+Return tt(0) if the style is set, tt(1) otherwise.
 )
 item(tt(zstyle -b) var(context) var(style) var(name))(
 The value is stored in var(name) as a boolean, i.e. as the string
 `tt(yes)' if the value has only one string and that string is equal to one
 of `tt(yes)', `tt(true)', `tt(on)', or `tt(1)'. If the value is any other
 string or has more than one string, the parameter is set to `tt(no)'.
+
+Return tt(0) if var(name) is set to `tt(yes)', tt(1) otherwise.
 )
 item(tt(zstyle -a) var(context) var(style) var(name))(
 The value is stored in var(name) as an array. If var(name) is declared 
 as an associative array,  the first, third, etc. strings are used as the
 keys and the other strings are used as the values.
+
+Return tt(0) if the style is set, tt(1) otherwise.
 )
 xitem(tt(zstyle -t) var(context) var(style) [ var(string) ... ])
 item(tt(zstyle -T) var(context) var(style) [ var(string) ... ])(