[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.0-68-gf917b75

Ville Skyttä ville.skytta at iki.fi
Tue Nov 6 19:57:37 UTC 2012


The following commit has been merged in the master branch:
commit f917b750dda9dc977579c264840878a97ed0fdfe
Author: Ville Skyttä <ville.skytta at iki.fi>
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



More information about the Bash-completion-commits mailing list