[Bash-completion-commits] [SCM] bash-completion branch, master, updated. bd35adfe218859c1a92fd3e6da94ec99337b7b38

Ville Skyttä ville.skytta at iki.fi
Mon May 10 21:54:24 UTC 2010


The following commit has been merged in the master branch:
commit bd35adfe218859c1a92fd3e6da94ec99337b7b38
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue May 11 00:52:57 2010 +0300

    Make ssh -b completion work on FreeBSD and Solaris.

diff --git a/contrib/ssh b/contrib/ssh
index 37831bb..86f2129 100644
--- a/contrib/ssh
+++ b/contrib/ssh
@@ -6,8 +6,10 @@ have ssh &&
 _ssh_bindaddress()
 {
     COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W \
-        "$( PATH="$PATH:/sbin" ifconfig | \
-        sed -ne 's/.*addr:\([^[:space:]]*\).*/\1/p' )" -- "$cur" ) )
+        "$( PATH="$PATH:/sbin" ifconfig -a | \
+        sed -ne 's/.*addr:\([^[:space:]]*\).*/\1/p' \
+            -ne 's/.*inet[[:space:]]\{1,\}\([^[:space:]]*\).*/\1/p' )" \
+        -- "$cur" ) )
 }
 
 _ssh_ciphers()

-- 
bash-completion



More information about the Bash-completion-commits mailing list