Fix javadoc, lvm, and mkinitrd (_count_args) local variable leaks.
This commit is contained in:
parent
1ff30048fa
commit
5b54c41de5
1
CHANGES
1
CHANGES
@ -38,6 +38,7 @@ bash-completion (2.x)
|
|||||||
* Add /sbin to $PATH when invoking ifconfig and iwconfig.
|
* Add /sbin to $PATH when invoking ifconfig and iwconfig.
|
||||||
* Combine dcop and qdbus completions into the latter.
|
* Combine dcop and qdbus completions into the latter.
|
||||||
* sed usage portability fixes.
|
* sed usage portability fixes.
|
||||||
|
* Fix leaking local variables from various completions.
|
||||||
|
|
||||||
[ 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)
|
||||||
|
@ -705,10 +705,11 @@ _realcommand() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# this function count the number of mandatory args
|
# This function counts the number of args
|
||||||
#
|
#
|
||||||
_count_args()
|
_count_args()
|
||||||
{
|
{
|
||||||
|
local i
|
||||||
args=1
|
args=1
|
||||||
for (( i=1; i < COMP_CWORD; i++ )); do
|
for (( i=1; i < COMP_CWORD; i++ )); do
|
||||||
if [[ "${COMP_WORDS[i]}" != -* ]]; then
|
if [[ "${COMP_WORDS[i]}" != -* ]]; then
|
||||||
|
@ -173,7 +173,7 @@ have javadoc &&
|
|||||||
_javadoc()
|
_javadoc()
|
||||||
{
|
{
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
local cur prev
|
local cur prev classpath
|
||||||
|
|
||||||
cur=`_get_cword`
|
cur=`_get_cword`
|
||||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||||
|
@ -978,7 +978,7 @@ complete -F _lvextend lvextend
|
|||||||
|
|
||||||
_lvm()
|
_lvm()
|
||||||
{
|
{
|
||||||
local prev
|
local cur
|
||||||
|
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
cur=`_get_cword`
|
cur=`_get_cword`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user