1 |
On Thursday 14 April 2005 05:58 pm, Caleb Tennis wrote: |
2 |
> On Thursday 14 April 2005 04:54 pm, Stephen Bennett wrote: |
3 |
> > > use blah && ( emake foo || die ) |
4 |
> > |
5 |
> > Yep, because that doesn't work. |
6 |
> |
7 |
> Wow. I've been doing it for years. What's broken about it, the nested die |
8 |
> ro the "use blah &&" part? |
9 |
|
10 |
as hinted elsewhere, the problem is that ( ) spawns a subshell ... that means |
11 |
the call to 'die' aborts the sub (i.e. forked) shell, not the parent (i.e. |
12 |
the ebuild) shell ... so when emake fails, portage wont notice |
13 |
-mike |
14 |
-- |
15 |
gentoo-dev@g.o mailing list |