From 16869f5aa75f84ce356f7499da3ef119920a69bf Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 17 May 2005 10:49:31 +0000 Subject: 21264: document return status of (( ... )) --- ChangeLog | 4 ++++ Doc/Zsh/arith.yo | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f66c3c925..c97a7566c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-05-17 Peter Stephenson + + * 21264: Doc/Zsh/arith.yo: document the return status of (( ... )). + 2005-05-17 Geoff Wing * unposted: Etc/FAQ.yo: update mirror sites diff --git a/Doc/Zsh/arith.yo b/Doc/Zsh/arith.yo index 20456b924..33ca09c20 100644 --- a/Doc/Zsh/arith.yo +++ b/Doc/Zsh/arith.yo @@ -21,7 +21,10 @@ command which begins with a `tt(LPAR()LPAR())', all the characters until a matching `tt(RPAR()RPAR())' are treated as a quoted expression and arithmetic expansion performed as for an argument of tt(let). More precisely, `tt(LPAR()LPAR())var(...)tt(RPAR()RPAR())' is equivalent to -`tt(let ")var(...)tt(")'. For example, the following statement +`tt(let ")var(...)tt(")'. The return status is 0 if the arithmetic value +of the expression is non-zero, and 1 otherwise. + +For example, the following statement example((( val = 2 + 1 ))) -- cgit 1.4.1