Add /sbin to $PATH when invoking ifconfig and iwconfig.

This commit is contained in:
Ville Skyttä 2009-10-31 14:05:19 +02:00
parent 50b4b8459f
commit 82c2334e4c
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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