summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-09-28 08:34:54 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-09-28 08:34:54 +0300
commit9d146b9ba5735854c486cfc013c4a8d962661cc4 (patch)
tree5022b13dc780dbf7b9a4c690d7320f2a12bdd7bb
parente81223ac46c2e7692e97d469f3eefdcfb2cb9075 (diff)
downloadbash-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_completion2
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.