mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-09 00:11:25 +02:00
47547: docs: Specify the exact kind of quoting which is assumed when parsing arithmetic expressions
This commit is contained in:
parent
bd647c1565
commit
038f537a2a
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2020-11-16 ivan tkachenko <me@ratijas.tk>
|
||||||
|
|
||||||
|
* 47547: Doc/Zsh/arith.yo: docs: Specify the exact kind of
|
||||||
|
quoting which is assumed when parsing arithmetic expressions
|
||||||
|
|
||||||
2020-11-16 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
2020-11-16 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||||
|
|
||||||
* 47560: configure.ac, aczsh.m4: add necessary includes or
|
* 47560: configure.ac, aczsh.m4: add necessary includes or
|
||||||
|
|
|
@ -20,7 +20,7 @@ The tt(let) builtin command takes arithmetic expressions as arguments; each
|
||||||
is evaluated separately. Since many of the arithmetic operators, as well
|
is evaluated separately. Since many of the arithmetic operators, as well
|
||||||
as spaces, require quoting, an alternative form is provided: for any
|
as spaces, require quoting, an alternative form is provided: for any
|
||||||
command which begins with a `tt(LPAR()LPAR())', all the characters until a
|
command which begins with a `tt(LPAR()LPAR())', all the characters until a
|
||||||
matching `tt(RPAR()RPAR())' are treated as a quoted expression and
|
matching `tt(RPAR()RPAR())' are treated as a double-quoted expression and
|
||||||
arithmetic expansion performed as for an argument of tt(let). More
|
arithmetic expansion performed as for an argument of tt(let). More
|
||||||
precisely, `tt(LPAR()LPAR())var(...)tt(RPAR()RPAR())' is equivalent to
|
precisely, `tt(LPAR()LPAR())var(...)tt(RPAR()RPAR())' is equivalent to
|
||||||
`tt(let ")var(...)tt(")'. The return status is 0 if the arithmetic value
|
`tt(let ")var(...)tt(")'. The return status is 0 if the arithmetic value
|
||||||
|
|
Loading…
Reference in a new issue