From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j3ELw2OE017726 for ; Thu, 14 Apr 2005 21:58:02 GMT Received: from TesterServ.TesterNet ([66.131.231.214]) by VL-MO-MR011.ip.videotron.ca (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0IEY00GMSICP60@VL-MO-MR011.ip.videotron.ca> for gentoo-dev@lists.gentoo.org; Thu, 14 Apr 2005 17:58:01 -0400 (EDT) Received: from uucp by TesterServ.TesterNet with local-rmail (Exim 3.35 #1 (Debian)) id 1DMCLZ-0007Dh-00 for ; Thu, 14 Apr 2005 17:58:01 -0400 Received: by TesterTop.tester.ca (Postfix, from userid 1000) id 6DDE9103263; Thu, 14 Apr 2005 17:57:53 -0400 (EDT) Date: Thu, 14 Apr 2005 17:57:52 -0400 From: Olivier =?ISO-8859-1?Q?Cr=EAte?= Subject: Re: [gentoo-dev] Nested die error In-reply-to: <200504141642.22339.caleb@gentoo.org> To: gentoo-dev@lists.gentoo.org Message-id: <1113515873.10606.2.camel@localhost> Organization: Gentoo Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-type: multipart/signed; boundary="=-cVL4OnNRkLAHTp0HBb9b"; protocol="application/pgp-signature"; micalg=pgp-sha1 References: <200504141642.22339.caleb@gentoo.org> X-Archives-Salt: 186a842b-34b4-42d6-9cc1-a761cfa06e8d X-Archives-Hash: a3166c0202702d07a5e2084f9f4614bf --=-cVL4OnNRkLAHTp0HBb9b Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable On Thu, 2005-14-04 at 16:42 -0500, Caleb Tennis wrote: > So it seems repoman doesn't like nested die calls like this: >=20 > use blah && ( emake foo || die ) >=20 >=20 > But, without the parenthesis >=20 > use blah && emake foo || die >=20 > always dies (the emake functions just fine, but it returns an error once = emake=20 > is completed). >=20 > What's the trick? Wrap the emake in a if/then call? Ignore repoman at t= he=20 > risk of potential finger breakage by mr_bones'? You can do if/then/fi or use blah && { emake foo || die; }=20 {} will not spawn a sub-shell... just execute them in the same shell so the die will work properly --=20 Olivier Cr=EAte tester@gentoo.org x86 Security Liaison --=-cVL4OnNRkLAHTp0HBb9b Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBCXudgHTiOWk7ZorsRAju0AJ0Wn30h1c92g0U7ncoVTIJQgLqLGACfakvP VjmEfU3YzNqmXB7zvhAkRnA= =ka9k -----END PGP SIGNATURE----- --=-cVL4OnNRkLAHTp0HBb9b-- -- gentoo-dev@gentoo.org mailing list