Skip to content

Commit

Permalink
_known_hosts_real: Filter ruptime stdout error spewage (Alioth: #3138…
Browse files Browse the repository at this point in the history
…93).
  • Loading branch information
scop committed Nov 6, 2012
1 parent 3b93c22 commit f917b75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f917b75

Please sign in to comment.