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

Freddy Vulto fvulto at gmail.com
Wed Nov 3 21:06:33 UTC 2010


The following commit has been merged in the master branch:
commit 99d8cf290d6731a319378ad2176affeb108d80f6
Author: Freddy Vulto <fvulto at gmail.com>
Date:   Wed Nov 3 22:06:12 2010 +0100

    (testsuite) Fix comment

diff --git a/test/lib/completions/ls.exp b/test/lib/completions/ls.exp
index fb89752..5aafddb 100644
--- a/test/lib/completions/ls.exp
+++ b/test/lib/completions/ls.exp
@@ -19,24 +19,22 @@ if {[assert_exec {ls --help} "" "" "unsupported"]} {
 sync_after_int
 
 
-set test "~part should complete to ~full/"
-# Create list of users, having a home dir
+set test "~part should complete to ~full/ if existing dir"
+# Create list of users, having existing home dir
 assert_bash_exec {for u in $(compgen -u); do \
     eval test -d ~$u && echo $u; unset u; done} {} /@ users
 find_unique_completion_pair $users part full
-# If home directory exists, append slash "/", else space " "
 assert_complete "~$full/" "ls ~$part" $test
 
 
 sync_after_int
 
 
-set test "~part should complete to ~full<space>"
+set test "~part should complete to ~full<space> if non-existing dir"
 # Create list of users, having non-existing home dir
 assert_bash_exec {for u in $(compgen -u); do \
     eval test -d ~$u || echo $u; unset u; done} {} /@ users
 find_unique_completion_pair $users part full
-# If home directory exists, append slash "/", else space " "
 assert_complete "~$full " "ls ~$part" $test
 
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list