summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-05 09:34:37 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-05 09:34:37 +0000
commit0d13e83d09d3bc4210d73a707ed491c0d4dcf533 (patch)
tree4491d705efa5f094cee614d2ecdafe174f101065
parent7f7d01774ed505df7f0a176aa909baf2bb9bbb70 (diff)
downloadportage-0d13e83d09d3bc4210d73a707ed491c0d4dcf533.tar.gz
portage-0d13e83d09d3bc4210d73a707ed491c0d4dcf533.tar.bz2
portage-0d13e83d09d3bc4210d73a707ed491c0d4dcf533.zip
TODO: Move variable name validation and declare -r filtering
into filter-bash-environment.py. svn path=/main/trunk/; revision=9438
-rwxr-xr-xbin/ebuild.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 6ca4d6a75..ecbb69d2a 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1427,6 +1427,9 @@ filter_readonly_variables() {
BASH_[_[:alnum:]]* PATH
[[:digit:]][_[:alnum:]]*
[-_[:alnum:]]*-[-_[:alnum:]]*"
+ # TODO: Take the above variable name validation and the below sed-based
+ # declare -r filter and integrate them both directly into
+ # filter-bash-environment.py.
if hasq --filter-sandbox $* ; then
filtered_vars="${filtered_vars} SANDBOX_[_[:alnum:]]*"
else