_known_hosts_real: Filter ruptime stdout error spewage (Alioth: #313893).

This commit is contained in:
Ville Skyttä 2012-11-06 21:55:57 +02:00
parent 3b93c22a5b
commit f917b750dd

View File

@ -1547,7 +1547,8 @@ _known_hosts_real()
# Add hosts reported by ruptime.
COMPREPLY+=( $( compgen -W \
"$( ruptime 2>/dev/null | awk '{ print $1 }' )" -- "$cur" ) )
"$( ruptime 2>/dev/null | awk '!/^ruptime:/ { print $1 }' )" \
-- "$cur" ) )
# Add results of normal hostname completion, unless
# `COMP_KNOWN_HOSTS_WITH_HOSTFILE' is set to an empty value.