From: Tom Knight <tomk@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] use foo && bar vs. [ `use foo` ] && bar
Date: Mon, 19 Jul 2004 18:33:49 +0100 [thread overview]
Message-ID: <20040719173349.GA26225@earwig.bogus> (raw)
[-- Attachment #1: Type: text/plain, Size: 877 bytes --]
Hi
First I want to say how glad I am to be part of the dev team. I'll try my
best not to screw anything up, so excuse any silly questions I'm bound to
have.
Back on topic, I've searched for this on bugzilla, and didn't find anything,
but I'm sure it's come up on the forums before. There are several ebuilds
which have something along the lines of:
use foo && bar
Which executes bar if the foo USE flag is set, the problem is that the use
function not only returns true when the USE flag is set it also echos the
flag to stdout. When you emerge something you end up with loads of use flags
outputted.
The solution is to do it like this:
[ `use foo` ] && bar
Which returns true if foo is in USE, but doesn't output the USE flag.
I'm going have a go at fixing some of the net-mail packages, if others can
do the same taht would be great.
tom
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2004-07-19 17:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-19 17:33 Tom Knight [this message]
2004-07-19 17:44 ` [gentoo-dev] use foo && bar vs. [ `use foo` ] && bar Ciaran McCreesh
2004-07-19 17:48 ` Tom Knight
2004-07-19 20:34 ` Mike Frysinger
2004-07-19 20:53 ` Stuart Herbert
2004-07-19 22:13 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040719173349.GA26225@earwig.bogus \
--to=tomk@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox