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 77E5E158074 for ; Fri, 20 Jun 2025 05:45:49 +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 477EE341F2B for ; Fri, 20 Jun 2025 05:45:49 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 5F0C51104DE; Fri, 20 Jun 2025 05:45:44 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 593681104DE for ; Fri, 20 Jun 2025 05:45:44 +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 05878341214 for ; Fri, 20 Jun 2025 05:45:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 99F3129D0 for ; Fri, 20 Jun 2025 05:45:42 +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: <1750398336.296325c3c48f522dcf7eb0ef31a6d0ae0dc586bf.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/emerge-webrsync X-VCS-Directories: bin/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 296325c3c48f522dcf7eb0ef31a6d0ae0dc586bf X-VCS-Branch: master Date: Fri, 20 Jun 2025 05:45:42 +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: 46c67894-165d-4cb0-936c-9fe9c29b67de X-Archives-Hash: 94ddd7ebb4494b7c47d6a7d2ed01f6d4 commit: 296325c3c48f522dcf7eb0ef31a6d0ae0dc586bf Author: Kerin Millar plushkava net> AuthorDate: Fri Jun 20 00:02:13 2025 +0000 Commit: Sam James gentoo org> CommitDate: Fri Jun 20 05:45:36 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=296325c3 emerge-webrsync: ensure opt is initialised as empty Declare the 'opt' variable as an empty associative array, thereby ensuring that the environment cannot cause it to be populated with an unwanted "0" key. $ opt=foo bash -c 'declare -A opt; declare -p opt' declare -Ax opt=([0]="foo" ) See-also: 2144492f54f1485bb02193e56f46f87e5e47edf3 Signed-off-by: Kerin Millar plushkava.net> Signed-off-by: Sam James gentoo.org> bin/emerge-webrsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync index 6358ec7f51..4e04f3af12 100755 --- a/bin/emerge-webrsync +++ b/bin/emerge-webrsync @@ -677,5 +677,5 @@ if [[ -n "${PORTAGE_NICENESS}" ]]; then renice "${PORTAGE_NICENESS}" $$ > /dev/null fi -declare -A opt +declare -A opt=() main "$@"