Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15246 > unrolled thread
| Started by | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| First post | 2019-07-25 13:34 -0400 |
| Last post | 2019-07-25 13:34 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: expression evaluation problem Greg Wooledge <wooledg@eeg.ccf.org> - 2019-07-25 13:34 -0400
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Date | 2019-07-25 13:34 -0400 |
| Subject | Re: expression evaluation problem |
| Message-ID | <mailman.2228.1564076078.2688.bug-bash@gnu.org> |
On Thu, Jul 25, 2019 at 10:29:08AM -0700, L A Walsh wrote:
> On 2019/07/24 11:49, Greg Wooledge wrote:
> > $((expression))
> >
> > The expression is treated as if it were within double quotes,
> I didn't use $((...)), I'd put the whole thing in ((...)) which I hoped
> would treat the whole expression consistently.
((expression))
The expression is evaluated according to the rules described be‐
low under ARITHMETIC EVALUATION.
[...]
ARITHMETIC EVALUATION
[...]
Shell variables are allowed as operands; parameter expansion is per‐
formed before the expression is evaluated.
Back to top | Article view | gnu.bash.bug
csiph-web