[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    Re: [gentoo-dev] Patch: Linguas USE support for cmake-utils.eclass
From:       Mike Frysinger <vapier () gentoo ! org>
Date:       2012-06-29 5:14:13
Message-ID: 201206290114.14429.vapier () gentoo ! org
[Download RAW message or body]


On Sunday 24 June 2012 04:18:07 Ben de Groot wrote:
> On 24 June 2012 02:32, Mike Frysinger <vapier@gentoo.org> wrote:
> > On Saturday 23 June 2012 13:37:59 Michael Palimaka wrote:
> >> +for x in ${LANGS}; do
> >> +       IUSE+=" linguas_${x}"
> >> +done
> > 
> > if you don't want to make it into an array:
> > IUSE+=" $(printf 'linguas_%s ' ${LANGS})"
> 
> What's wrong with the original? Why the subshell?

printf is faster than a for loop, and prettier imo
-mike

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic