[Bash-completion-commits] [SCM] bash-completion branch, frozen/1.0, updated. 79ef58feca717e6872f4696fd7e7db8f7dc57d0b
David Paleino
d.paleino at gmail.com
Tue Mar 31 12:03:13 UTC 2009
The following commit has been merged in the frozen/1.0 branch:
commit 79ef58feca717e6872f4696fd7e7db8f7dc57d0b
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Mar 30 23:53:23 2009 +0300
Fix local array initialization under bash 3.0.
In bash 3.0, "local foo=(bar)" does not appear to initialize foo to
an array containing "bar", but to the non-array value "(bar)".
diff --git a/CHANGES b/CHANGES
index 3f31302..d7365ff 100644
--- a/CHANGES
+++ b/CHANGES
@@ -141,6 +141,12 @@ bash-completion (1.0)
* Remove obsolete --buildarch and --buildos rpm(build) completions.
* Add rpmbuild --target completion.
* Use "-profile help" to get mplayer and friends -profile completions.
+ * Split yum and yum-arch completion into contrib/yum.
+ * Install yum-arch completion only if yum-arch is installed.
+ * Update list of yum commands and options.
+ * Add yum repolist, --enable/disablerepo, and --disableexcludes completions.
+ * Fix local array initialization under bash 3.x, prevents "()" occurring in
+ file and dir name completions.
[ Freddy Vulto ]
* Restored `_display()' completion for `display' by removing
diff --git a/bash_completion b/bash_completion
index 3e36d89..552f808 100644
--- a/bash_completion
+++ b/bash_completion
@@ -271,7 +271,8 @@ _filedir()
_expand || return 0
- local toks=( ) tmp
+ local -a toks
+ local tmp
# TODO: I've removed a "[ -n $tmp ] &&" before `echo $tmp',
# and everything works again. If this bug
@@ -9272,7 +9273,9 @@ _filedir_xspec()
xspec=${xspec#*-X }
xspec=${xspec%% *}
- local toks=( ) tmp
+ local -a toks
+ local tmp
+
toks=( ${toks[@]-} $(
compgen -d -- "$(quote_readline "$cur")" | {
while read -r tmp; do
--
bash-completion
More information about the Bash-completion-commits
mailing list