[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 14d0ee38ac5eebf38d591df28ea3497d50b322ed
Freddy Vulto (none)
freddy at rebase.
Sat Jun 13 21:56:57 UTC 2009
The following commit has been merged in the master branch:
commit 14d0ee38ac5eebf38d591df28ea3497d50b322ed
Author: Freddy Vulto <freddy at rebase.(none)>
Date: Sat Jun 13 23:54:14 2009 +0200
Fix _known_hosts calling _known_hosts_real
Added -h argument. Added "deprecated" notes.
diff --git a/bash_completion b/bash_completion
index f8b17b0..9bc8e3c 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1045,7 +1045,8 @@ _user_at_host() {
}
shopt -u hostcomplete && complete -F _user_at_host $nospace talk ytalk finger
-# See: _known_hosts_real()
+# NOTE: Using this function as a helper function is deprecated. Use
+# `_known_hosts_real' instead.
_known_hosts()
{
local cur
@@ -1053,7 +1054,8 @@ _known_hosts()
COMPREPLY=()
cur=`_get_cword`
- _known_hosts_real "$@"
+ # NOTE: Passing "$@" is deprecated. See NOTE above.
+ _known_hosts_real -h "$cur" "$@"
}
# Helper function for completing _known_hosts.
--
bash-completion
More information about the Bash-completion-commits
mailing list