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:
parent
579e462a6f
commit
cd2b62bd62
@ -1059,7 +1059,7 @@ _known_hosts()
|
||||
COMPREPLY=()
|
||||
cur=`_get_cword`
|
||||
|
||||
_known_hosts_real $@
|
||||
_known_hosts_real "$@"
|
||||
}
|
||||
|
||||
_known_hosts_real()
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user