Add /sbin to $PATH when invoking ifconfig and iwconfig.
This commit is contained in:
parent
50b4b8459f
commit
82c2334e4c
1
CHANGES
1
CHANGES
@ -27,6 +27,7 @@ bash-completion (2.x)
|
|||||||
* Improve sourcing snippets from completion dirs.
|
* Improve sourcing snippets from completion dirs.
|
||||||
* Drop support for bash < 3.
|
* Drop support for bash < 3.
|
||||||
* Fix sed error in qdbus completions containing slashes (Debian: 552631).
|
* Fix sed error in qdbus completions containing slashes (Debian: 552631).
|
||||||
|
* Add /sbin to $PATH when invoking ifconfig and iwconfig.
|
||||||
|
|
||||||
[ Freddy Vulto ]
|
[ Freddy Vulto ]
|
||||||
* Added _get_pword() helper function, thanks to Sung Pae (Alioth: #312030)
|
* Added _get_pword() helper function, thanks to Sung Pae (Alioth: #312030)
|
||||||
|
@ -542,8 +542,8 @@ _available_interfaces()
|
|||||||
cmd="ifconfig -a"
|
cmd="ifconfig -a"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
COMPREPLY=( $( eval $cmd 2>/dev/null | \
|
COMPREPLY=( $( eval PATH="$PATH:/sbin" $cmd 2>/dev/null | \
|
||||||
sed -ne 's|^\('"$cur"'[^[:space:][:punct:]]\{1,\}\).*$|\1|p') )
|
sed -ne 's|^\('"$cur"'[^[:space:][:punct:]]\{1,\}\).*$|\1|p') )
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function expands tildes in pathnames
|
# This function expands tildes in pathnames
|
||||||
|
Loading…
x
Reference in New Issue
Block a user