1 |
On Thu, Jun 03, 2004 at 10:42:51AM -0400, Aron Griffis wrote: |
2 |
> splite-gentoo@××××××××××××××××.edu wrote: [Thu Jun 03 2004, 09:59:37AM EDT] |
3 |
> > On Wed, Jun 02, 2004 at 09:28:17PM -0400, Aron Griffis wrote: |
4 |
> > > Doing some maintenance on the tree, found some real prize winning |
5 |
> > > brokenness. Here's just a taste... |
6 |
> > > |
7 |
> > > use python && use ppc || myconf="$myconf --with-python" |
8 |
> > |
9 |
> > What's wrong with this? It's just a succinct way of saying: |
10 |
> > |
11 |
> > if use python && ! use ppc; then |
12 |
> > myconf="$myconf --with-python" |
13 |
> > fi |
14 |
> |
15 |
> I'm glad you asked! It's actually a succinct way of saying: |
16 |
> |
17 |
> if ! use python || ! use ppc; then |
18 |
> myconf="$myconf --with-python" |
19 |
> fi |
20 |
> |
21 |
> Try these on the bash command-line: |
22 |
> |
23 |
> true && false || echo borken |
24 |
> false && true || echo borken |
25 |
> |
26 |
> If you're still confused by this, or think I'm wrong, let me know and |
27 |
|
28 |
Nope, you're right. That's what I get for pre-coffee posting. This would |
29 |
work: |
30 |
|
31 |
use python && { use ppc || myconf="$myconf --with-python"; } |
32 |
|
33 |
-- |
34 |
gentoo-dev@g.o mailing list |