1 |
Ühel kenal päeval, N, 19.05.2016 kell 18:51, kirjutas Amadeusz |
2 |
Żołnowski: |
3 |
> Ulrich Mueller <ulm@g.o> writes: |
4 |
> > The EAPI 6 method would be to use "|| die -n". Then the caller can |
5 |
> > either call "eawk" if the function should die automatically, or |
6 |
> > "nonfatal eawk" if it should return with an error status. |
7 |
|
8 |
Don't you possibly need a || return as well in there if it isn't the |
9 |
last things in the function? |
10 |
https://blogs.gentoo.org/mgorny/2015/11/13/the-ultimate-guide-to-eapi-6 |
11 |
|
12 |
> Yes, that seems better. Hasn't it been introduced earlier than in |
13 |
> EAPI 6? |
14 |
|
15 |
die -n argument is new in EAPI 6 |
16 |
nonfatal was added in EAPI 4, together with the fatality defaults for |
17 |
PM utilities. |
18 |
See https://devmanual.gentoo.org/ebuild-writing/eapi/ |
19 |
|
20 |
|
21 |
Mart |