summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-10-18 19:44:25 +0000
committerZac Medico <zmedico@gentoo.org>2009-10-18 19:44:25 +0000
commit119b90dbd62a46764eace707cb14c051407a41bd (patch)
treebf2745b92f53ef617c9488df0bc5fb321906bf05 /bin/ebuild.sh
parentFix messages broken in r14616. Thanks to Arfrever for reporting and thanks to (diff)
downloadportage-idfetch-119b90dbd62a46764eace707cb14c051407a41bd.tar.gz
portage-idfetch-119b90dbd62a46764eace707cb14c051407a41bd.tar.bz2
portage-idfetch-119b90dbd62a46764eace707cb14c051407a41bd.zip
Move filtering of misc bash variables from save_ebuild_env() to
filter_readonly_variables(). Add additional variables found in the output of `env -i bash -c 'declare -p'`. svn path=/main/trunk/; revision=14676
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 38c0c78d..4ffff2b6 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1634,11 +1634,15 @@ filter_readonly_variables() {
local x filtered_vars
local readonly_bash_vars="BASHPID DIRSTACK EUID FUNCNAME
GROUPS PIPESTATUS PPID SHELLOPTS UID"
+ local bash_misc_vars="BASH BASH_.* COMP_WORDBREAKS HISTCMD
+ HISTFILE HOSTNAME HOSTTYPE IFS LINENO MACHTYPE OLDPWD
+ OPTERR OPTIND OSTYPE POSIXLY_CORRECT PS4 PWD RANDOM
+ SECONDS SHELL SHLVL"
local filtered_sandbox_vars="SANDBOX_ACTIVE SANDBOX_BASHRC
SANDBOX_DEBUG_LOG SANDBOX_DISABLED SANDBOX_LIB
SANDBOX_LOG SANDBOX_ON"
- filtered_vars="${readonly_bash_vars} ${READONLY_PORTAGE_VARS}
- BASH_.* HISTFILE PATH POSIXLY_CORRECT"
+ filtered_vars="$readonly_bash_vars $bash_misc_vars
+ $READONLY_PORTAGE_VARS PATH"
if hasq --filter-sandbox $* ; then
filtered_vars="${filtered_vars} SANDBOX_.*"
else