Gentoo Archives: gentoo-dev

From: "Olivier CrĂȘte" <tester@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Nested die error
Date: Thu, 14 Apr 2005 21:58:02
Message-Id: 1113515873.10606.2.camel@localhost
In Reply to: [gentoo-dev] Nested die error by Caleb Tennis
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

Attachments

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

Replies

Subject Author
Re: [gentoo-dev] Nested die error Mike Frysinger <vapier@g.o>