_known_hosts: Signal end of options to _known_hosts_real.

Fixes for example "ping --<TAB>":
error: _known_hosts_real: missing mandatory argument CWORD
This commit is contained in:
Ville Skyttä 2011-09-28 08:34:54 +03:00
parent e81223ac46
commit 9d146b9ba5

View File

@ -1305,7 +1305,7 @@ _known_hosts()
local options
[[ "$1" == -a || "$2" == -a ]] && options=-a
[[ "$1" == -c || "$2" == -c ]] && options+=" -c"
_known_hosts_real $options "$cur"
_known_hosts_real $options -- "$cur"
} # _known_hosts()
# Helper function for completing _known_hosts.