Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH 02/10] Use bash-4.2 for all future EAPIs, until declared otherwise
Date: Mon, 26 Feb 2018 19:59:46
Message-Id: 1519675180.1702.12.camel@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH 02/10] Use bash-4.2 for all future EAPIs, until declared otherwise by "Michał Górny"
1 W dniu pon, 26.02.2018 o godzinie 16∶59 +0100, użytkownik Michał Górny
2 napisał:
3 > ---
4 > bin/eapi.sh | 4 ++--
5 > 1 file changed, 2 insertions(+), 2 deletions(-)
6 >
7 > diff --git a/bin/eapi.sh b/bin/eapi.sh
8 > index a9c56b8ac..f3ba0da6e 100644
9 > --- a/bin/eapi.sh
10 > +++ b/bin/eapi.sh
11 > @@ -1,5 +1,5 @@
12 > #!/bin/bash
13 > -# Copyright 2012 Gentoo Foundation
14 > +# Copyright 2012-2018 Gentoo Foundation
15 > # Distributed under the terms of the GNU General Public License v2
16 >
17 > # PHASES
18 > @@ -193,5 +193,5 @@ ___eapi_bash_3_2() {
19 > }
20 >
21 > ___eapi_bash_4_2() {
22 > - [[ ${1-${EAPI-0}} =~ ^(6)$ ]]
23 > + ! ___eapi_bash_3_2
24
25 I've updated this to:
26
27 + ! ___eapi_bash_3_2 "$@"
28
29
30 Courtesy of Arfrever.
31
32 > }
33
34 --
35 Best regards,
36 Michał Górny