diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-05-17 10:49:31 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-05-17 10:49:31 +0000 |
commit | 16869f5aa75f84ce356f7499da3ef119920a69bf (patch) | |
tree | ea3e0cdcd05761f35a250e945ea7e6f4545b4e1f | |
parent | 3e9b2871775bda6245d1e9a860f174e1271b7eab (diff) | |
download | zsh-16869f5aa75f84ce356f7499da3ef119920a69bf.tar.gz zsh-16869f5aa75f84ce356f7499da3ef119920a69bf.tar.xz zsh-16869f5aa75f84ce356f7499da3ef119920a69bf.zip |
21264: document return status of (( ... ))
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Doc/Zsh/arith.yo | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index f66c3c925..c97a7566c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-05-17 Peter Stephenson <pws@csr.com> + + * 21264: Doc/Zsh/arith.yo: document the return status of (( ... )). + 2005-05-17 Geoff Wing <gcw@zsh.org> * 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 ))) |