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 (( ... )) --- Doc/Zsh/arith.yo | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Doc') 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