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 E4B0215806C for ; Sun, 13 Jul 2025 04:20: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 CA560341F57 for ; Sun, 13 Jul 2025 04:20:16 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 10B86110566; Sun, 13 Jul 2025 04:19:54 +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 0985C110566 for ; Sun, 13 Jul 2025 04:19:53 +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 9F711341F1E for ; Sun, 13 Jul 2025 04:19:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 36AE330E3 for ; Sun, 13 Jul 2025 04:19:51 +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: <1752380344.1262f1a722ef2501594736e4de69e8981ebb631c.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: 1262f1a722ef2501594736e4de69e8981ebb631c X-VCS-Branch: master Date: Sun, 13 Jul 2025 04:19:51 +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: 87d12c1a-161c-4501-9050-45ab3005709d X-Archives-Hash: 2b3f1c1ebb87bf7eb903e73288ac7748 commit: 1262f1a722ef2501594736e4de69e8981ebb631c Author: Kerin Millar plushkava net> AuthorDate: Sun Jul 6 16:49:03 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sun Jul 13 04:19:04 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=1262f1a7 phase-functions.sh: filter BASH_TRAPSIG in __filter_readonly_variables() I spotted the new 'BASH_TRAPSIG' variable while comparing the manuals of the 5.2 and 5.3 releases. Given that it is normally only visible from within a trap handler, add it to the blacklist defined by the __filter_readonly_variables() function. See-also: 8a607ed23beb4995627f9c4e2c7580469ace56bb Signed-off-by: Kerin Millar plushkava.net> Signed-off-by: Sam James gentoo.org> bin/phase-functions.sh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh index fd3c18b28d..afe28c613f 100644 --- a/bin/phase-functions.sh +++ b/bin/phase-functions.sh @@ -92,18 +92,19 @@ __filter_readonly_variables() { | grep -vx PATH ) # Incorporate other variables that are known to either be set by or be - # able to influence bash. This list was last updated for bash-5.3-rc2. + # able to influence bash. This list was last updated for bash-5.3. bash_vars+=( BASH_COMPAT BASH_ENV BASH_LOADABLES_PATH BASH_REMATCH - BASH_XTRACEFD CDPATH CHILD_MAX COLUMNS COMPREPLY COMP_CWORD - COMP_KEY COMP_LINE COMP_POINT COMP_TYPE COMP_WORDS COPROC - ENV EXECIGNORE FCEDIT FIGNORE FUNCNAME FUNCNEST GLOBIGNORE - GLOBSORT HISTCONTROL HISTFILE HISTFILESIZE HISTIGNORE HISTSIZE - HISTTIMEFORMAT HOME HOSTFILE IGNOREEOF INPUTRC INSIDE_EMACS - LINES MAIL MAILCHECK MAILPATH MAPFILE OLDPWD OPTARG PIPESTATUS - POSIXLY_CORRECT PROMPT_COMMAND PROMPT_DIRTRIM PS0 PS1 PS2 PS3 - READLINE_ARGUMENT READLINE_LINE READLINE_MARK READLINE_POINT - REPLY TIMEFORMAT TMOUT TMPDIR auto_resume histchars + BASH_TRAPSIG BASH_XTRACEFD CDPATH CHILD_MAX COLUMNS COMPREPLY + COMP_CWORD COMP_KEY COMP_LINE COMP_POINT COMP_TYPE COMP_WORDS + COPROC ENV EXECIGNORE FCEDIT FIGNORE FUNCNAME FUNCNEST + GLOBIGNORE GLOBSORT HISTCONTROL HISTFILE HISTFILESIZE + HISTIGNORE HISTSIZE HISTTIMEFORMAT HOME HOSTFILE IGNOREEOF + INPUTRC INSIDE_EMACS LINES MAIL MAILCHECK MAILPATH MAPFILE + OLDPWD OPTARG PIPESTATUS POSIXLY_CORRECT PROMPT_COMMAND + PROMPT_DIRTRIM PS0 PS1 PS2 PS3 READLINE_ARGUMENT READLINE_LINE + READLINE_MARK READLINE_POINT REPLY TIMEFORMAT TMOUT TMPDIR + auto_resume histchars # Exported functions bear this prefix. "BASH_FUNC_.*"