Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Mention when zstyle -t returns status 1
- X-seq: zsh-workers 29736
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: Mention when zstyle -t returns status 1
- Date: Mon, 29 Aug 2011 17:03:00 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer; bh=lvjAM/BIRVgfVZi4/P0+X/Cu3dyfutYyXHstAdLKKEw=; b=WARbtd2c+JV1uIc86TnT/NoQ5Dr9h8oDMgFpsf3MSnbqh7MHWN5WhKo+G3WJ6MCAZO U4oFCGCUc+2SHZey2g52EUQIsjPqqgKSCjY2YD68zwCOKr0SUaqc7+VWiWW3cm+Tm5Wr MWtqbsEZHkTEoWcRx8g/sZczIFC9jZhDuiFDs=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
---
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