|
From: | Linda Walsh |
Subject: | Re: status on $[arith] for eval arith vsl $((arith))?? |
Date: | Sat, 07 Apr 2012 14:50:17 -0700 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666 |
Mike Frysinger wrote:
On Saturday 07 April 2012 16:45:55 Linda Walsh wrote:Is it an accidental omission from the bash manpage?it's in the man page. read the "Arithmetic Expansion" section. -mike
==== My 4.2 manpage says: Arithmetic Expansion Arithmetic expansion allows the evaluation of an arithmetic expression and the substitution of the result. The format for arithmetic expan- sion is: $((expression)) The expression is treated as if it were within double quotes, but a double quote inside the parentheses is not treated specially. All tokens in the expression undergo parameter expansion, string expansion, command substitution, and quote removal. Arithmetic expansions may be nested. The evaluation is performed according to the rules listed below under ARITHMETIC EVALUATION. If expression is invalid, bash prints a message indicating failure and no substitution occurs. ---------- No mention of square brackets. What's yours say?
[Prev in Thread] | Current Thread | [Next in Thread] |