Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] check-reqs.eclass.patch
Date: Wed, 31 Aug 2011 19:04:15
Message-Id: 20062.34177.451764.983501@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-dev] [RFC] check-reqs.eclass.patch by Alec Warner
1 >>>>> On Wed, 31 Aug 2011, Alec Warner wrote:
2
3 > Also it is my understanding that all tokens in $(()) go through
4 > expansion, so for instance:
5
6 > $(( 1024 * 1024 * size ))
7
8 > and
9
10 > $(( 1024 * 1024 * ${size})) are equivalent.
11
12 > Is this only in bash4?
13
14 It's like this since bash 2.05 at least.
15
16 > Do we have a style preference?
17
18 Personally, I'd prefer the first variant.
19
20 Ulrich

Replies

Subject Author
Re: [gentoo-dev] [RFC] check-reqs.eclass.patch "Tomáš Chvátal" <scarabeus@g.o>
Re: [gentoo-dev] [RFC] check-reqs.eclass.patch "Tomáš Chvátal" <scarabeus@g.o>