1 |
Dne 31.8.2011 21:03, Ulrich Mueller napsal(a): |
2 |
>>>>>> On Wed, 31 Aug 2011, Alec Warner wrote: |
3 |
>> Also it is my understanding that all tokens in $(()) go through |
4 |
>> expansion, so for instance: |
5 |
>> $(( 1024 * 1024 * size )) |
6 |
>> and |
7 |
>> $(( 1024 * 1024 * ${size})) are equivalent. |
8 |
>> Is this only in bash4? |
9 |
> It's like this since bash 2.05 at least. |
10 |
> |
11 |
>> Do we have a style preference? |
12 |
> Personally, I'd prefer the first variant. |
13 |
> |
14 |
> Ulrich |
15 |
> |
16 |
I thought it is mandatory to use the second variant, otherwise i preffer |
17 |
the first myself as it is from bash 2 or so :) |