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

Ville Skyttä ville.skytta at iki.fi
Tue Nov 23 07:18:02 UTC 2010


The following commit has been merged in the master branch:
commit a0e7299717b1622f8ee1727ce111e6d7e1d5d795
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Nov 23 09:17:53 2010 +0200

    (testsuite) assert_complete_one() fixes, revealed by ssh.exp.

diff --git a/test/lib/library.exp b/test/lib/library.exp
index 4ac8800..61b3f40 100644
--- a/test/lib/library.exp
+++ b/test/lib/library.exp
@@ -255,7 +255,7 @@ proc assert_complete_one {expected cmd {test ""} {args {}}} {
         {prompt.arg     "/@" "bash prompt"}
         {chunk-size.arg 20   "compare N list items at a time"}
         {nospace             "don't expect space after completion"}
-        {ltrim_colon_completions  "left-trim completions with cword containing :"}
+        {ltrim-colon-completions  "left-trim completions with cword containing :"}
         {expect-cmd-full          "Expect full cmd after prompt"}
         {expect-cmd-minus.arg ""  "Expect cmd minus CWORD after prompt"}
     }]
@@ -264,9 +264,9 @@ proc assert_complete_one {expected cmd {test ""} {args {}}} {
     if {$test == ""} {set test "$cmd should show completion"}
     send "$cmd\t"
     expect -ex "$cmd"
-    if {$arg(ltrim_colon_completions)} {
+    if {$arg(ltrim-colon-completions)} {
         # If partial contains colon (:), remove partial from begin of items
-        _ltrim_colon_completions cword expected
+        _ltrim_colon_completions $cmd expected cword
     } else {
         set cur "";  # Default to empty word to complete on
         set words [split_words_bash $cmd]

-- 
bash-completion



More information about the Bash-completion-commits mailing list