summaryrefslogtreecommitdiffstats
path: root/bin/filter-bash-environment.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-02 23:28:12 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-02 23:28:12 +0000
commite7ea9ae438db74b6563b7ba8f1d7a22cd794a4ce (patch)
tree2266daad9f8b4c8e868bce2dadf82d2e38433d2d /bin/filter-bash-environment.py
parent129d61e63c7267f786dfec3322c158686531d32f (diff)
downloadportage-e7ea9ae438db74b6563b7ba8f1d7a22cd794a4ce.tar.gz
portage-e7ea9ae438db74b6563b7ba8f1d7a22cd794a4ce.tar.bz2
portage-e7ea9ae438db74b6563b7ba8f1d7a22cd794a4ce.zip
Bug #211949 - As suggested by vapier, tighten the variable filter to also
exclude variable names that begin with a digit or that contain any non-alphanumeric characters that are not be supported by bash. (trunk r9416) svn path=/main/branches/2.1.2/; revision=9417
Diffstat (limited to 'bin/filter-bash-environment.py')
-rwxr-xr-xbin/filter-bash-environment.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/filter-bash-environment.py b/bin/filter-bash-environment.py
index 83b250b69..691d406da 100755
--- a/bin/filter-bash-environment.py
+++ b/bin/filter-bash-environment.py
@@ -7,6 +7,7 @@ import os, re, sys
egrep_compat_map = {
"[:alnum:]" : r'\w',
+ "[:digit:]" : r'\d',
"[:space:]" : r'\s',
}