From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j3F3HWDI023023 for ; Fri, 15 Apr 2005 03:17:32 GMT Received: from localhost ([127.0.0.1] helo=home.wh0rd.org) by smtp.gentoo.org with esmtp (Exim 4.43) id 1DMHKW-0007Vm-Rc for gentoo-dev@lists.gentoo.org; Fri, 15 Apr 2005 03:17:16 +0000 Received: (qmail 2326 invoked from network); 14 Apr 2005 23:17:23 -0400 Received: from unknown (HELO vapier) (192.168.0.2) by 192.168.0.1 with SMTP; 14 Apr 2005 23:17:23 -0400 From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Nested die error Date: Thu, 14 Apr 2005 23:17:42 -0400 User-Agent: KMail/1.8 References: <200504141642.22339.caleb@gentoo.org> <1113515651.18201.2.camel@localhost> <200504141658.02514.caleb@gentoo.org> In-Reply-To: <200504141658.02514.caleb@gentoo.org> 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504142317.42250.vapier@gentoo.org> X-Archives-Salt: 6f42eaaa-b201-43b9-9405-7c1fe0b4d604 X-Archives-Hash: 1b0ef5a40af1232d13c7e6cc0ac0f1b8 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@gentoo.org mailing list