[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-439-g9d146b9

Ville Skyttä ville.skytta at iki.fi
Wed Sep 28 05:37:17 UTC 2011


The following commit has been merged in the master branch:
commit 9d146b9ba5735854c486cfc013c4a8d962661cc4
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Wed Sep 28 08:34:54 2011 +0300

    _known_hosts: Signal end of options to _known_hosts_real.
    
    Fixes for example "ping --<TAB>":
    error: _known_hosts_real: missing mandatory argument CWORD

diff --git a/bash_completion b/bash_completion
index c20a3af..8e2497f 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.

-- 
bash-completion



More information about the Bash-completion-commits mailing list