Fix _known_hosts calling _known_hosts_real

Added -h argument.  Added "deprecated" notes.
This commit is contained in:
Freddy Vulto 2009-06-13 23:54:14 +02:00
parent 2afa079ff5
commit 14d0ee38ac

View File

@ -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.