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 6B3ED158074 for ; Sat, 28 Jun 2025 02:31:16 +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) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 583A4341083 for ; Sat, 28 Jun 2025 02:31:16 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id AE1C511056F; Sat, 28 Jun 2025 02:30:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id A04DA11056F for ; Sat, 28 Jun 2025 02:30:39 +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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 56DFF340F21 for ; Sat, 28 Jun 2025 02:30:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8B0562AA0 for ; Sat, 28 Jun 2025 02:30:36 +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: <1751077823.d4751f628c52a5511a4f4d1ffac756c74631e21a.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/phase-functions.sh X-VCS-Directories: bin/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d4751f628c52a5511a4f4d1ffac756c74631e21a X-VCS-Branch: master Date: Sat, 28 Jun 2025 02:30:36 +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: 5bf2826d-667a-4fed-9a8c-fbb890f2fc02 X-Archives-Hash: 79f80b8bc3740d9a180118899281f467 commit: d4751f628c52a5511a4f4d1ffac756c74631e21a Author: Kerin Millar plushkava net> AuthorDate: Fri Jun 27 08:00:24 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sat Jun 28 02:30:23 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=d4751f62 phase-functions.sh: use the += operator to append to variables As an extension to the Shell Command Language, bash supports the += operator, which allows for the values of variables to be appended to. There are three instances in which the "phase-functions.sh" unit can benefit from this operator. Have it do so. Signed-off-by: Kerin Millar plushkava.net> Signed-off-by: Sam James gentoo.org> bin/phase-functions.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh index ec1e1e03a8..5cc6d6a54b 100644 --- a/bin/phase-functions.sh +++ b/bin/phase-functions.sh @@ -123,12 +123,12 @@ __filter_readonly_variables() { fi if has --filter-sandbox "$@"; then - filtered_vars="${filtered_vars} SANDBOX_.*" + filtered_vars+=" SANDBOX_.*" else - filtered_vars="${filtered_vars} ${filtered_sandbox_vars}" + filtered_vars+=" ${filtered_sandbox_vars}" fi if has --filter-features "$@"; then - filtered_vars="${filtered_vars} FEATURES PORTAGE_FEATURES" + filtered_vars+=" FEATURES PORTAGE_FEATURES" fi if has --filter-path "$@"; then filtered_vars+=" PATH"