diff options
-rw-r--r-- | test/lib/library.exp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/lib/library.exp b/test/lib/library.exp index 1aebfa3e..a2b7c218 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 |