Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Nested die error
Date: Fri, 15 Apr 2005 03:17:32
Message-Id: 200504142317.42250.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] Nested die error by Caleb Tennis
On Thursday 14 April 2005 05:58 pm, Caleb Tennis wrote:
> On Thursday 14 April 2005 04:54 pm, Stephen Bennett wrote: > > > use blah && ( emake foo || die ) > > > > Yep, because that doesn't work. > > Wow. I've been doing it for years. What's broken about it, the nested die > ro the "use blah &&" part?
as hinted elsewhere, the problem is that ( ) spawns a subshell ... that means the call to 'die' aborts the sub (i.e. forked) shell, not the parent (i.e. the ebuild) shell ... so when emake fails, portage wont notice -mike -- gentoo-dev@g.o mailing list