[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-364-gd44aaed
Igor Murzov
e-mail at date.by
Sun Jun 12 14:52:19 UTC 2011
The following commit has been merged in the master branch:
commit 4e79c13d0dbeb6955bb58baf9e6da329ebd29526
Author: Igor Murzov <e-mail at date.by>
Date: Sat Jun 11 14:57:01 2011 +0400
sbopkg, slackpkg, slapt: Don't leak local $i.
diff --git a/completions/sbopkg b/completions/sbopkg
index 532a879..767660a 100644
--- a/completions/sbopkg
+++ b/completions/sbopkg
@@ -38,8 +38,8 @@ _sbopkg()
return 0
fi
- local config="/etc/sbopkg/sbopkg.conf"
-
+ local i config
+ config="/etc/sbopkg/sbopkg.conf"
for (( i=${#words[@]}-1; i>0; i-- )); do
if [[ "${words[i]}" == -f ]]; then
config="${words[i+1]}"
diff --git a/completions/slackpkg b/completions/slackpkg
index a79322f..bd56f44 100644
--- a/completions/slackpkg
+++ b/completions/slackpkg
@@ -50,7 +50,7 @@ _slackpkg()
fi
. "$config"
- local action
+ local i action
for (( i=1; i<${#words[@]}; i++ )); do
if [[ "${words[i]}" != -* ]]; then
action="${words[i]}"
diff --git a/completions/slapt b/completions/slapt
index 4856f0a..3a7514d 100644
--- a/completions/slapt
+++ b/completions/slapt
@@ -29,7 +29,7 @@ _slapt_get()
return 0
fi
- local t
+ local i t
# search for last action (--install|--install-set|--remove|--show|--filelist)
for (( i=${#words[@]}-1; i>0; i-- )); do
if [[ ${words[i]} == -@(i|-install|-show) ]]; then
@@ -90,7 +90,7 @@ _slapt_src()
return 0
fi
- local t
+ local i t
# search for last action (-i|-w|-b|-f)
for (( i=${#words[@]}-1; i>0; i-- )); do
if [[ ${words[i]} == -@(i|w|f|b|-install|-show|-build|-fetch) ]]; then
--
bash-completion
More information about the Bash-completion-commits
mailing list