From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14732 invoked by alias); 29 Aug 2011 15:09:58 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29736 Received: (qmail 16247 invoked from network); 29 Aug 2011 15:09:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.214.43 as permitted sender) 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= From: Mikael Magnusson To: zsh-workers@zsh.org Subject: PATCH: Mention when zstyle -t returns status 1 Date: Mon, 29 Aug 2011 17:03:00 +0200 Message-Id: <1314630180-24925-1-git-send-email-mikachu@gmail.com> X-Mailer: git-send-email 1.7.5.4 --- 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