Fix _known_hosts calling _known_hosts_real
Added -h argument. Added "deprecated" notes.
This commit is contained in:
parent
2afa079ff5
commit
14d0ee38ac
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user