_known_hosts_real: Filter ruptime stdout error spewage (Alioth: #313893).
This commit is contained in:
parent
3b93c22a5b
commit
f917b750dd
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user