Gentoo Archives: gentoo-dev

From: "Petteri Räty" <betelgeuse@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: use_echo() as a universal '?:' operator-like function
Date: Sat, 11 Sep 2010 18:50:17
Message-Id: 4C8BCFBC.7090102@gentoo.org
In Reply to: Re: [gentoo-dev] Re: use_echo() as a universal '?:' operator-like function by "Michał Górny"
1 On 09/11/2010 09:44 PM, Michał Górny wrote:
2 > On Sat, 11 Sep 2010 20:26:17 +0200
3 > Francesco R <vivo75@×××××.com> wrote:
4 >
5 >> echo $(use_case useA,echoA useB,echoB ,echoC)
6 >
7 > I would personally rather use:
8 > echo $(use_case useA,echoA useB,echoB echoC)
9 >
10 > but AFAICS your implementation should support both.
11 >
12 > PS I suggest using [[ -z ${u} ]] instead.
13 >
14
15 How often do we need multiple arguments like that? We could just as well
16 have multiple calls like with use_enable. I think we should keep
17 consistency with use_enable (and it would also result in a simpler
18 implementation).
19
20 Regards,
21 Petteri

Attachments

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