On Thursday 14 April 2005 05:57 pm, Olivier Crête wrote:
> 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
both syntaxes are ugly imho but the best thing would be to use if/then/fi
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 &&"
On Thu, 14 Apr 2005 17:05:25 -0500 Vibhav Garg <[EMAIL PROTECTED]> wrote:
| Caleb Tennis wrote:
| >So it seems repoman doesn't like nested die calls like this:
| >
| >use blah && ( emake foo || die )
| >
| i believe this is a question in the developer end quiz too:-)
It is now. It wasn't back in t
Caleb Tennis wrote:
>So it seems repoman doesn't like nested die calls like this:
>
>use blah && ( emake foo || die )
>
>
>
i believe this is a question in the developer end quiz too:-)
>But, without the parenthesis
>
>use blah && emake foo || die
>
>always dies (the emake functions just fine,
On Thu, 14 Apr 2005 16:42:22 -0500 Caleb Tennis <[EMAIL PROTECTED]>
wrote:
| use blah && ( emake foo || die )
Here's what The Doc will have to say about this:
``die`` and Subshells
-
.. Warning:: ``die`` **will not work in a subshell**.
The following code will not work as ex
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?
Caleb
--
gentoo-dev@gentoo.org mailing list
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
if useq blah; then
emake foo || die "emake foo failed"
fi
we use useq because it does not output blah.
regards,
Stefan
--
gentoo-dev@gentoo.org mailing list
On Thu, 2005-04-14 at 16:42 -0500, Caleb Tennis wrote:
> So it seems repoman doesn't like nested die calls like this:
>
> use blah && ( emake foo || die )
>
Yep, because that doesn't work.
> What's the trick? Wrap the emake in a if/then call?
Yes.
> Ignore repoman at the
> risk of potential
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
10 matches
Mail list logo