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

Freddy Vulto (none) freddy at rebase.
Thu Jun 11 19:27:59 UTC 2009


The following commit has been merged in the master branch:
commit cd2b62bd62a003f5ace013f9862e76913ccd3e45
Author: Freddy Vulto <freddy at rebase.(none)>
Date:   Thu Jun 11 21:26:43 2009 +0200

    Fix quotes _known_hosts calling _known_hosts_real
    This fixes test "Config file containing space should work".  See test:
    
       ./runUnit _known_hosts.exp

diff --git a/bash_completion b/bash_completion
index f17d18e..9b8b32c 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1059,7 +1059,7 @@ _known_hosts()
 	COMPREPLY=()
 	cur=`_get_cword`
 
-	_known_hosts_real $@
+	_known_hosts_real "$@"
 }
 
 _known_hosts_real()
diff --git a/test/unit/_known_hosts.exp b/test/unit/_known_hosts.exp
index 55e254b..c9b6121 100644
--- a/test/unit/_known_hosts.exp
+++ b/test/unit/_known_hosts.exp
@@ -43,11 +43,11 @@ set hosts [exec bash -c "compgen -A hostname"]
     # Hosts `gee' and `hus' are defined in ./fixtures/_known_hosts/spaced  conf
     # Hosts `doo' and `ike' are defined in ./fixtures/_known_hosts/known_hosts
     # Host `two' is defined in ./fixtures/_known_hosts/known_hosts2
-lappend hosts gee hus
+lappend hosts gee hus doo ike two
 set hosts [lsort -ascii $hosts]
 set hosts [join $hosts "\\s+"]
     # Call _known_hosts
-set cmd {_known_hosts -F 'fixtures/_known_hosts/spaced  conf'; echo_array COMPREPLY}
+set cmd {_known_hosts -aF 'fixtures/_known_hosts/spaced  conf'; echo_array COMPREPLY}
 send "$cmd\r"
 expect -ex "$cmd\r\n"
 expect {

-- 
bash-completion



More information about the Bash-completion-commits mailing list