Bug #297933: Filter BASHOPTS variable for compatibility with bash-4.1.
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Tue, 22 Dec 2009 20:05:56 +0000 (20:05 +0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 21 May 2012 22:33:05 +0000 (15:33 -0700)
svn path=/main/trunk/; revision=15130

bin/ebuild.sh

index ab71871f22d7e480ba7feee72a67ebb8d639ba45..f6379a9f4d2bd5e9b8ffdb139a9e77657604be58 100755 (executable)
@@ -1614,8 +1614,8 @@ PORTAGE_MUTABLE_FILTERED_VARS="AA HOSTNAME"
 # variables out and discards them. See bug #190128.
 filter_readonly_variables() {
        local x filtered_vars
-       local readonly_bash_vars="DIRSTACK EUID FUNCNAME GROUPS
-               PIPESTATUS PPID SHELLOPTS UID"
+       local readonly_bash_vars="BASHOPTS BASHPID DIRSTACK EUID
+               FUNCNAME GROUPS PIPESTATUS PPID SHELLOPTS UID"
        local filtered_sandbox_vars="SANDBOX_ACTIVE SANDBOX_BASHRC
                SANDBOX_DEBUG_LOG SANDBOX_DISABLED SANDBOX_LIB
                SANDBOX_LOG SANDBOX_ON"