Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Mention when zstyle -t returns status 1



---
 Doc/Zsh/mod_zutil.yo |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Doc/Zsh/mod_zutil.yo b/Doc/Zsh/mod_zutil.yo
index 1838eab..726b0f0 100644
--- a/Doc/Zsh/mod_zutil.yo
+++ b/Doc/Zsh/mod_zutil.yo
@@ -94,21 +94,22 @@ as an associative array,  the first, third, etc. strings are used as the
 keys and the other strings are used as the values.
 )
 xitem(tt(zstyle -t) var(context) var(style) [ var(strings) ...])
 item(tt(zstyle -T) var(context) var(style) [ var(strings) ...])(
 Test the value of a style, i.e. the tt(-t) option only returns a status
 (sets tt($?)).  Without any var(strings) the return status is zero if the
 style is defined for at least one matching pattern, has only one string in
 its value, and that is equal to one of `tt(true)', `tt(yes)', `tt(on)' or
 `tt(1)'. If any var(strings) are given the status is zero if and only if
 at least one of the var(strings) is equal to at least one of the strings
-in the value. If the style is not defined, the status is tt(2).
+in the value. If the style is defined but doesn't match, the return status
+is tt(1). If the style is not defined, the status is tt(2).
 
 The tt(-T) option tests the values of the style like tt(-t), but it
 returns status zero (rather than tt(2)) if the style is not defined for any
 matching pattern.
 )
 item(tt(zstyle -m) var(context) var(style) var(pattern))(
 Match a value. Returns status zero if the 
 var(pattern) matches at least one of the strings in the value.
 )
 enditem()
-- 
1.7.5.4



Messages sorted by: Reverse Date, Date, Thread, Author