Bug #211949 - Tighten the variable name filter to exclude any variables
authorZac Medico <zmedico@gentoo.org>
Wed, 5 Mar 2008 19:59:27 +0000 (19:59 -0000)
committerZac 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

index ecbb69d2a6eedd0d80a8b085f36d799baf99120e..3268c9b0e21f3dee1ae2f9d876843f5aeb5f77b9 100755 (executable)
@@ -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.