The following commit has been merged in the master branch:
commit f917b750dda9dc977579c264840878a97ed0fdfe
Author: Ville Skyttä <[email protected]>
Date:   Tue Nov 6 21:55:57 2012 +0200

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

diff --git a/bash_completion b/bash_completion
index 9559339..870811b 100644
--- a/bash_completion
+++ b/bash_completion
@@ -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.

-- 
bash-completion

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits

Reply via email to