From: "Olivier Crête" <tester@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Nested die error
Date: Thu, 14 Apr 2005 17:57:52 -0400 [thread overview]
Message-ID: <1113515873.10606.2.camel@localhost> (raw)
In-Reply-To: <200504141642.22339.caleb@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 706 bytes --]
On Thu, 2005-14-04 at 16:42 -0500, Caleb Tennis wrote:
> So it seems repoman doesn't like nested die calls like this:
>
> use blah && ( emake foo || die )
>
>
> But, without the parenthesis
>
> use blah && emake foo || die
>
> always dies (the emake functions just fine, but it returns an error once emake
> is completed).
>
> What's the trick? Wrap the emake in a if/then call? Ignore repoman at the
> risk of potential finger breakage by mr_bones'?
You can do if/then/fi or
use blah && { emake foo || die; }
{} will not spawn a sub-shell... just execute them in the same shell so
the die will work properly
--
Olivier Crête
tester@gentoo.org
x86 Security Liaison
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-04-14 21:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-14 21:42 [gentoo-dev] Nested die error Caleb Tennis
2005-04-14 21:50 ` Stefan Schweizer
2005-04-14 23:56 ` [gentoo-dev] " Michael Sterrett -Mr. Bones.-
2005-04-14 21:54 ` [gentoo-dev] " Stephen Bennett
2005-04-14 21:58 ` Caleb Tennis
2005-04-15 3:17 ` Mike Frysinger
2005-04-14 21:57 ` Olivier Crête [this message]
2005-04-15 3:20 ` Mike Frysinger
2005-04-14 21:59 ` Ciaran McCreesh
2005-04-14 22:05 ` Vibhav Garg
2005-04-14 22:11 ` Ciaran McCreesh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1113515873.10606.2.camel@localhost \
--to=tester@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox