Fix have_end_quote() to compare the quote against the correct group.
authorZac Medico <zmedico@gentoo.org>
Wed, 5 Mar 2008 22:03:31 +0000 (22:03 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 5 Mar 2008 22:03:31 +0000 (22:03 -0000)
svn path=/main/trunk/; revision=9442

bin/filter-bash-environment.py

index 0db77ba5f1d84d5354abe1212ea86a2632c612a2..0a88f710b1e0c8933498e712dd60c4bfe7cbfa22 100755 (executable)
@@ -32,7 +32,7 @@ def have_end_quote(quote, line):
        """
        close_quote_match = close_quote_re.search(line)
        return close_quote_match is not None and \
-               close_quote_match.group(0) == quote
+               close_quote_match.group(1) == quote
 
 def filter_bash_environment(pattern, file_in, file_out):
        here_doc_delim = None