1 |
>>>>> On Wed, 31 Mar 2021, Andreas Sturmlechner wrote: |
2 |
|
3 |
> setup-allowed-flags() { |
4 |
> + [[ ${EAPI} == [0-7] ]] || |
5 |
> + die "Internal function ${FUNCNAME} is not available in >=EAPI-8." |
6 |
> + _setup-allowed-flags |
7 |
> +} |
8 |
|
9 |
Strictly speaking, EAPIs are strings, so numeric comparison is not |
10 |
meaningful. Suggestion: "... is not available in EAPI ${EAPI}." |
11 |
|
12 |
> test-flag-PROG() { |
13 |
> + [[ ${EAPI} == [0-7] ]] || |
14 |
> + die "Internal function ${FUNCNAME} is not available in >=EAPI-8." |
15 |
> + _test-flag-PROG |
16 |
> +} |
17 |
|
18 |
> test-flags-PROG() { |
19 |
> + [[ ${EAPI} == [0-7] ]] || |
20 |
> + die "Internal function ${FUNCNAME} is not available in >=EAPI-8." |
21 |
> + _test-flags-PROG |
22 |
> +} |
23 |
|
24 |
Same for these. |
25 |
|
26 |
Ulrich |