Fix the regex for bug #211949 so that it correctly matches variable
authorZac Medico <zmedico@gentoo.org>
Mon, 3 Mar 2008 10:16:26 +0000 (10:16 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 3 Mar 2008 10:16:26 +0000 (10:16 -0000)
names that contain more than one non-alphanumeric character.

svn path=/main/trunk/; revision=9419

bin/ebuild.sh

index 4773d9b447815f99931d85f1de3d15204bf27918..4f6959ec0fb5a852b3289a1a9718d9ca2a421cf0 100755 (executable)
@@ -1425,7 +1425,7 @@ filter_readonly_variables() {
                SANDBOX_LOG SANDBOX_ON"
        filtered_vars="${readonly_bash_vars} ${READONLY_PORTAGE_VARS}
                BASH_[_[:alnum:]]* PATH
-               [[:digit:]][_[:alnum:]]* [_[:alnum:]]*[^_[:alnum:]][_[:alnum:]]*"
+               [[:digit:]][_[:alnum:]]* [^[:space:]]*[^_[:alnum:]][^[:space:]]*"
        if hasq --filter-sandbox $* ; then
                filtered_vars="${filtered_vars} SANDBOX_[_[:alnum:]]*"
        else