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:20:06 | ||
Message-Id: | 200504142320.13443.vapier@gentoo.org | ||
In Reply to: | Re: [gentoo-dev] Nested die error by "Olivier CrĂȘte" |
1 | On Thursday 14 April 2005 05:57 pm, Olivier CrĂȘte wrote: |
2 | > You can do if/then/fi or |
3 | > use blah && { emake foo || die; } |
4 | > |
5 | > {} will not spawn a sub-shell... just execute them in the same shell so |
6 | > the die will work properly |
7 | |
8 | both syntaxes are ugly imho but the best thing would be to use if/then/fi |
9 | because many more developers understand that than the 1 line { } code |
10 | -mike |
11 | |
12 | -- |
13 | gentoo-dev@g.o mailing list |