1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-25 05:10:28 +02:00

Merge of 23553: retrieving array as number.

This commit is contained in:
Paul Ackersviller 2007-11-19 00:52:24 +00:00
parent 3ea0ed6cfe
commit 5cceac415d
4 changed files with 193 additions and 73 deletions

View file

@ -22,7 +22,7 @@ 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(")'. The return status is 0 if the arithmetic value
of the expression is non-zero, and 1 otherwise.
of the expression is non-zero, 1 if it is zero, and 2 if an error occurred.
For example, the following statement

View file

@ -652,9 +652,12 @@ tt(kill -IO) and tt(kill -POLL) have the same effect.
findex(let)
item(tt(let) var(arg) ...)(
Evaluate each var(arg) as an arithmetic expression.
See noderef(Arithmetic Evaluation) for a description
of arithmetic expressions. The exit status is 0 if the
value of the last expression is nonzero, and 1 otherwise.
See
ifzman(the section `Arithmetic Evaluation' in zmanref(zshmisc))\
ifnzman(noderef(Arithmetic Evaluation))
for a description of arithmetic expressions. The exit status is 0 if the
value of the last expression is nonzero, 1 if it is zero, and 2 if
an error occurred.
)
findex(limit)
cindex(resource limits)