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

Ville Skyttä ville.skytta at iki.fi
Sat Oct 31 12:24:07 UTC 2009


The following commit has been merged in the master branch:
commit 503c224899115dd533fc1fa56bb868dfc6a63487
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Oct 31 14:16:39 2009 +0200

    Don't hardcode path to ifconfig.

diff --git a/contrib/ssh b/contrib/ssh
index eaa168c..8a95f6c 100644
--- a/contrib/ssh
+++ b/contrib/ssh
@@ -65,7 +65,7 @@ _ssh()
             return 0
             ;;
         -b)
-            COMPREPLY=( $( compgen -W "$(/sbin/ifconfig | \
+            COMPREPLY=( $( compgen -W "$( PATH="$PATH:/sbin" ifconfig | \
                 awk '/adr:/ {print $2}' | awk -F: '{print $2}' )" -- "$cur" ) )
             return 0
             ;;

-- 
bash-completion



More information about the Bash-completion-commits mailing list