projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0142fe5
)
Bug #211949 - Tighten the variable name filter to exclude any variables
author
Zac Medico
<zmedico@gentoo.org>
Wed, 5 Mar 2008 19:59:27 +0000
(19:59 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 5 Mar 2008 19:59:27 +0000
(19:59 -0000)
with names containing any non-alphanumeric characters.
svn path=/main/trunk/; revision=9441
bin/ebuild.sh
patch
|
blob
|
history
diff --git
a/bin/ebuild.sh
b/bin/ebuild.sh
index ecbb69d2a6eedd0d80a8b085f36d799baf99120e..3268c9b0e21f3dee1ae2f9d876843f5aeb5f77b9 100755
(executable)
--- a/
bin/ebuild.sh
+++ b/
bin/ebuild.sh
@@
-1426,7
+1426,7
@@
filter_readonly_variables() {
filtered_vars="${readonly_bash_vars} ${READONLY_PORTAGE_VARS}
BASH_[_[:alnum:]]* PATH
[[:digit:]][_[:alnum:]]*
-
[-_[: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.