From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D6AFD15813A for ; Tue, 14 Jan 2025 13:16:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EBEADE080E; Tue, 14 Jan 2025 13:16:58 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E6B86E080E for ; Tue, 14 Jan 2025 13:16:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D2A33335D0F for ; Tue, 14 Jan 2025 13:16:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 023EBB2C for ; Tue, 14 Jan 2025 13:16:54 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1736859215.0faca49bcdd7c4ffef47661de51ce6d562ad6c89.ulm@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/eapi.sh X-VCS-Directories: bin/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 0faca49bcdd7c4ffef47661de51ce6d562ad6c89 X-VCS-Branch: master Date: Tue, 14 Jan 2025 13:16:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0f215c74-b188-4115-84e8-064d09a3fa58 X-Archives-Hash: 103712d6e545968cbfacd78ea7a51a81 commit: 0faca49bcdd7c4ffef47661de51ce6d562ad6c89 Author: Ulrich Müller gentoo org> AuthorDate: Sat Jan 11 10:28:59 2025 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Tue Jan 14 12:53:35 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=0faca49b eapi.sh: Make bash-5.0 test explicit Signed-off-by: Ulrich Müller gentoo.org> bin/eapi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/eapi.sh b/bin/eapi.sh index 224ec0e1c8..3ea24cbb06 100644 --- a/bin/eapi.sh +++ b/bin/eapi.sh @@ -273,7 +273,7 @@ ___eapi_bash_4_2() { } ___eapi_bash_5_0() { - true + [[ ! ${1-${EAPI-0}} =~ ^(0|1|2|3|4|5|6|7)$ ]] } ___eapi_has_ENV_UNSET() {