Fix quotes _known_hosts calling _known_hosts_real

This fixes test "Config file containing space should work".  See test:

   ./runUnit _known_hosts.exp
This commit is contained in:
Freddy Vulto 2009-06-11 21:26:43 +02:00
parent 579e462a6f
commit cd2b62bd62
2 changed files with 3 additions and 3 deletions

View File

@ -1059,7 +1059,7 @@ _known_hosts()
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
_known_hosts_real $@ _known_hosts_real "$@"
} }
_known_hosts_real() _known_hosts_real()

View File

@ -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 `gee' and `hus' are defined in ./fixtures/_known_hosts/spaced conf
# Hosts `doo' and `ike' are defined in ./fixtures/_known_hosts/known_hosts # Hosts `doo' and `ike' are defined in ./fixtures/_known_hosts/known_hosts
# Host `two' is defined in ./fixtures/_known_hosts/known_hosts2 # 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 [lsort -ascii $hosts]
set hosts [join $hosts "\\s+"] set hosts [join $hosts "\\s+"]
# Call _known_hosts # 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" send "$cmd\r"
expect -ex "$cmd\r\n" expect -ex "$cmd\r\n"
expect { expect {