Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Patch: Linguas USE support for cmake-utils.eclass
Date: Fri, 29 Jun 2012 05:15:53
Message-Id: 201206290114.14429.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] Patch: Linguas USE support for cmake-utils.eclass by Ben de Groot
1 On Sunday 24 June 2012 04:18:07 Ben de Groot wrote:
2 > On 24 June 2012 02:32, Mike Frysinger <vapier@g.o> wrote:
3 > > On Saturday 23 June 2012 13:37:59 Michael Palimaka wrote:
4 > >> +for x in ${LANGS}; do
5 > >> + IUSE+=" linguas_${x}"
6 > >> +done
7 > >
8 > > if you don't want to make it into an array:
9 > > IUSE+=" $(printf 'linguas_%s ' ${LANGS})"
10 >
11 > What's wrong with the original? Why the subshell?
12
13 printf is faster than a for loop, and prettier imo
14 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature