diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-03-09 02:36:47 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-03-09 02:36:47 +0000 |
commit | 0d4857c5d5d600641efa366f0fc769d17368caac (patch) | |
tree | 20120448a2290842babd2e2d26a929c3d87add74 | |
parent | c8d7ff041cf96b107325e5b75fa71e60f28d82cd (diff) | |
download | portage-0d4857c5d5d600641efa366f0fc769d17368caac.tar.gz portage-0d4857c5d5d600641efa366f0fc769d17368caac.tar.bz2 portage-0d4857c5d5d600641efa366f0fc769d17368caac.zip |
Fix var_assign_re to recognize a call to the 'declare' builtin even when
no options are given.
svn path=/main/trunk/; revision=9456
-rwxr-xr-x | bin/filter-bash-environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/filter-bash-environment.py b/bin/filter-bash-environment.py index bac104f13..d3434ff0e 100755 --- a/bin/filter-bash-environment.py +++ b/bin/filter-bash-environment.py @@ -9,7 +9,7 @@ here_doc_re = re.compile(r'.*\s<<[-]?(\w+)$') func_start_re = re.compile(r'^[-\w]+\s*\(\)\s*$') func_end_re = re.compile(r'^\}$') -var_assign_re = re.compile(r'(^|^declare\s+-\S+\s+|^export\s+)([^=\s]+)=("|\')?.*$') +var_assign_re = re.compile(r'(^|^declare\s+-\S+\s+|^declare\s+|^export\s+)([^=\s]+)=("|\')?.*$') close_quote_re = re.compile(r'(\\"|"|\')\s*$') readonly_re = re.compile(r'^declare\s+-(\S*)r(\S*)\s+') |