_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:
parent
e81223ac46
commit
9d146b9ba5
@ -1305,7 +1305,7 @@ _known_hosts()
|
|||||||
local options
|
local options
|
||||||
[[ "$1" == -a || "$2" == -a ]] && options=-a
|
[[ "$1" == -a || "$2" == -a ]] && options=-a
|
||||||
[[ "$1" == -c || "$2" == -c ]] && options+=" -c"
|
[[ "$1" == -c || "$2" == -c ]] && options+=" -c"
|
||||||
_known_hosts_real $options "$cur"
|
_known_hosts_real $options -- "$cur"
|
||||||
} # _known_hosts()
|
} # _known_hosts()
|
||||||
|
|
||||||
# Helper function for completing _known_hosts.
|
# Helper function for completing _known_hosts.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user