diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-09-28 08:34:54 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-09-28 08:34:54 +0300 |
commit | 9d146b9ba5735854c486cfc013c4a8d962661cc4 (patch) | |
tree | 5022b13dc780dbf7b9a4c690d7320f2a12bdd7bb | |
parent | e81223ac46c2e7692e97d469f3eefdcfb2cb9075 (diff) | |
download | bash-completion-9d146b9ba5735854c486cfc013c4a8d962661cc4.tar.gz |
_known_hosts: Signal end of options to _known_hosts_real.
Fixes for example "ping --<TAB>":
error: _known_hosts_real: missing mandatory argument CWORD
-rw-r--r-- | bash_completion | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash_completion b/bash_completion index c20a3af1..8e2497f4 100644 --- a/bash_completion +++ b/bash_completion @@ -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. |