From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 48DCA15807A for ; Thu, 05 Jun 2025 11:22:35 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 3243F343167 for ; Thu, 05 Jun 2025 11:22:35 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 36B281104AE; Thu, 05 Jun 2025 11:22:17 +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)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 30AF31104AE for ; Thu, 05 Jun 2025 11:22:17 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E2111343127 for ; Thu, 05 Jun 2025 11:22:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 86AF72940 for ; Thu, 05 Jun 2025 11:22:14 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1749122528.899851a8a9dc955b879aca9bc63e2e87c48a71e8.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/estrip X-VCS-Directories: bin/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 899851a8a9dc955b879aca9bc63e2e87c48a71e8 X-VCS-Branch: master Date: Thu, 05 Jun 2025 11:22:14 +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: 77817107-d4ae-4dd3-b16e-82e299576fdb X-Archives-Hash: 32f5d45defed186c96cce15b7d946f23 commit: 899851a8a9dc955b879aca9bc63e2e87c48a71e8 Author: Kerin Millar plushkava net> AuthorDate: Mon Aug 8 03:20:46 2022 +0000 Commit: Sam James gentoo org> CommitDate: Thu Jun 5 11:22:08 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=899851a8 estrip: use test -v instead of ${param-unset} Wherever there is a need to test whether a variable is set, employ the [[ ! -v name ]] command to do so. This is supported as of bash-4.2. Signed-off-by: Kerin Millar plushkava.net> Signed-off-by: Sam James gentoo.org> bin/estrip | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/estrip b/bin/estrip index 50bf308f08..1c1af8965a 100755 --- a/bin/estrip +++ b/bin/estrip @@ -498,8 +498,8 @@ if (( ! has_restriction[binchecks] )); then __multijob_child_init qa_var="QA_PRESTRIPPED_${ARCH/-/_}" [[ -n ${!qa_var} ]] && QA_PRESTRIPPED="${!qa_var}" - if [[ -n ${QA_PRESTRIPPED} && -s ${log} && \ - ${QA_STRICT_PRESTRIPPED-unset} = unset ]] ; then + if [[ -n ${QA_PRESTRIPPED} && -s ${log} && + ! -v QA_STRICT_PRESTRIPPED ]] ; then shopts=$- set -o noglob for x in ${QA_PRESTRIPPED} ; do