[Bash-completion-commits] [SCM] bash-completion branch, expect-fixes, updated. 1b200eca213963e2e85013c7a80e92fda910034e

Crestez Dan Leonard cdleonard at gmail.com
Thu Mar 18 04:16:54 UTC 2010


The following commit has been merged in the expect-fixes branch:
commit 1b200eca213963e2e85013c7a80e92fda910034e
Author: Crestez Dan Leonard <cdleonard at gmail.com>
Date:   Thu Mar 18 06:16:28 2010 +0200

    (testsuite) Don't and start of prompt pattern in sync_after_int.

diff --git a/test/lib/library.exp b/test/lib/library.exp
index 1aebfa3..a2b7c21 100644
--- a/test/lib/library.exp
+++ b/test/lib/library.exp
@@ -918,7 +918,11 @@ proc sync_after_int {{prompt /@}} {
         # inputrc starting from bash 4.1. This is not enough; we need to run tests
         # against bash-4.0 as well.
         # See http://www.mail-archive.com/bug-bash@gnu.org/msg07038.html
-        expect -re "^(\\^C)?\\r\\n$prompt$"
+
+        # Don't anchor the start; even though it would be bizzare for
+        # something to show up.
+        # See http://lists.alioth.debian.org/pipermail/bash-completion-devel/2010-February/002625.html
+        expect -re ".*(\\^C)?\\r\\n$prompt$"
     } else {
         # Slow alternative is to sleep and hope we don't match the first of
         # two prompts

-- 
bash-completion



More information about the Bash-completion-commits mailing list