[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 59e7d21e09b0c68228e1b0239df00e22c309fe89

Freddy Vulto fvulto at gmail.com
Mon Apr 26 17:54:03 UTC 2010


The following commit has been merged in the master branch:
commit 59e7d21e09b0c68228e1b0239df00e22c309fe89
Author: Freddy Vulto <fvulto at gmail.com>
Date:   Mon Apr 26 19:53:13 2010 +0200

    (testsuite) Fix screen accessing $::BASH_VERSINFO

diff --git a/test/lib/completions/screen.exp b/test/lib/completions/screen.exp
index 62c5736..985862c 100644
--- a/test/lib/completions/screen.exp
+++ b/test/lib/completions/screen.exp
@@ -31,12 +31,12 @@ expect {
         # _filedir only works if `-o filenames' is in effect, which isn't the
         # case for `screen' on bash-3, so an expected failure (xfail)
     -re "\r\nbar\\s+bar bar.d\\s+foo\\s+foo.d" { 
-        if {[lindex $BASH_VERSINFO 0] < 4} {xfail "$test"} {fail "$test"}
+        if {[lindex $::BASH_VERSINFO 0] < 4} {xfail "$test"} {fail "$test"}
     }
     -re "\r\nbar\\s+bar\\\\ bar.d/\\s+foo\\s+foo.d/" {
         # On bash-3, the space in `bar bar.d' is escaped with a backslash
         # as a side-effect of emulating `-o filenames'.
-        if {[lindex $BASH_VERSINFO 0] <= 3} {pass "$test"} {fail "$test"}
+        if {[lindex $::BASH_VERSINFO 0] <= 3} {pass "$test"} {fail "$test"}
     }
     -re $prompt { unresolved "$test at prompt" }
     default { unresolved "$test" }

-- 
bash-completion



More information about the Bash-completion-commits mailing list