summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-04 18:43:58 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-04 18:43:58 +0000
commitc51ce698b7629cb133550777a8e177d582c4acdc (patch)
tree811114e354a9b51214c80c4e1f3f30a475c496a8
parent500345465e9d78cc9c782febfcbede4145525876 (diff)
downloadportage-c51ce698b7629cb133550777a8e177d582c4acdc.tar.gz
portage-c51ce698b7629cb133550777a8e177d582c4acdc.tar.bz2
portage-c51ce698b7629cb133550777a8e177d582c4acdc.zip
Fix func_start_re so that it requires at least one alphanumeric character.
svn path=/main/trunk/; revision=9434
-rwxr-xr-xbin/filter-bash-environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/filter-bash-environment.py b/bin/filter-bash-environment.py
index 861f0a693..93b049768 100755
--- a/bin/filter-bash-environment.py
+++ b/bin/filter-bash-environment.py
@@ -12,7 +12,7 @@ egrep_compat_map = {
}
here_doc_re = re.compile(r'.*\s<<[-]?(\w+)$')
-func_start_re = re.compile(r'^[-\w]*\s*\(\)\s*$')
+func_start_re = re.compile(r'^[-\w]+\s*\(\)\s*$')
func_end_re = re.compile(r'^\}$')
def compile_egrep_pattern(s):