[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 29ee9fb3f973ad249806c1b412716330d76f06b2
Ville Skyttä
ville.skytta at iki.fi
Sat Oct 31 12:12:54 UTC 2009
The following commit has been merged in the master branch:
commit 82c2334e4c44d72c50de6fc4ab9092fe182f89d8
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sat Oct 31 14:05:19 2009 +0200
Add /sbin to $PATH when invoking ifconfig and iwconfig.
diff --git a/CHANGES b/CHANGES
index cc0c165..e283a8d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -27,6 +27,7 @@ bash-completion (2.x)
* Improve sourcing snippets from completion dirs.
* Drop support for bash < 3.
* Fix sed error in qdbus completions containing slashes (Debian: 552631).
+ * Add /sbin to $PATH when invoking ifconfig and iwconfig.
[ Freddy Vulto ]
* Added _get_pword() helper function, thanks to Sung Pae (Alioth: #312030)
diff --git a/bash_completion b/bash_completion
index 4878145..9e29921 100644
--- a/bash_completion
+++ b/bash_completion
@@ -542,8 +542,8 @@ _available_interfaces()
cmd="ifconfig -a"
fi
- COMPREPLY=( $( eval $cmd 2>/dev/null | \
- sed -ne 's|^\('"$cur"'[^[:space:][:punct:]]\{1,\}\).*$|\1|p') )
+ COMPREPLY=( $( eval PATH="$PATH:/sbin" $cmd 2>/dev/null | \
+ sed -ne 's|^\('"$cur"'[^[:space:][:punct:]]\{1,\}\).*$|\1|p') )
}
# This function expands tildes in pathnames
--
bash-completion
More information about the Bash-completion-commits
mailing list