1 |
On Thu, 2005-14-04 at 16:42 -0500, Caleb Tennis wrote: |
2 |
> So it seems repoman doesn't like nested die calls like this: |
3 |
> |
4 |
> use blah && ( emake foo || die ) |
5 |
> |
6 |
> |
7 |
> But, without the parenthesis |
8 |
> |
9 |
> use blah && emake foo || die |
10 |
> |
11 |
> always dies (the emake functions just fine, but it returns an error once emake |
12 |
> is completed). |
13 |
> |
14 |
> What's the trick? Wrap the emake in a if/then call? Ignore repoman at the |
15 |
> risk of potential finger breakage by mr_bones'? |
16 |
|
17 |
You can do if/then/fi or |
18 |
use blah && { emake foo || die; } |
19 |
|
20 |
{} will not spawn a sub-shell... just execute them in the same shell so |
21 |
the die will work properly |
22 |
|
23 |
-- |
24 |
Olivier CrĂȘte |
25 |
tester@g.o |
26 |
x86 Security Liaison |