The following commit has been merged in the master branch:
commit ef7f9dc89e3db29b68df62fc37c68b6232a9263a
Author: Ville Skyttä <[email protected]>
Date: Sat Jan 16 12:56:29 2010 +0200
(testsuite) Allow possibly leading whitespace in match_items() chunks > 1.
Thanks to Freddy Vulto.
diff --git a/test/lib/library.exp b/test/lib/library.exp
index 1da3aaf..fe07dcc 100644
--- a/test/lib/library.exp
+++ b/test/lib/library.exp
@@ -503,7 +503,8 @@ proc match_items {items test {prompt /@} {size 20}} {
set items [bash_sort $items]
set result false
for {set i 0} {$i < [llength $items]} {set i [expr {$i + $size}]} {
- set expected ""
+ # For chunks > 1, allow leading whitespace
+ if {$i > $size} { set expected "\\s*" } else { set expected "" }
for {set j 0} {$j < $size && $i + $j < [llength $items]} {incr j} {
set item "[lindex $items [expr {$i + $j}]]"
# Escape special regexp characters
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits