[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 098dc9c1b8a90f15220e425ef5235afdb0122483
Freddy Vulto
fvulto at gmail.com
Mon Dec 7 08:30:24 UTC 2009
The following commit has been merged in the master branch:
commit 098dc9c1b8a90f15220e425ef5235afdb0122483
Author: Freddy Vulto <fvulto at gmail.com>
Date: Mon Dec 7 09:28:49 2009 +0100
Remove unused local variable `wordbreaks'
in function `__reassemble_comp_words_by_ref()'
diff --git a/bash_completion b/bash_completion
index a885069..d82b287 100644
--- a/bash_completion
+++ b/bash_completion
@@ -220,13 +220,12 @@ dequote()
#
__reassemble_comp_words_by_ref() {
local exclude i j ref
- # On bash-3, `COMP_WORDBREAKS' is empty which is ok; no additional
- # word breaking is done on bash-3.
- local wordbreaks="$COMP_WORDBREAKS"
# Exclude word separator characters?
if [[ $1 ]]; then
# Yes, exclude word separator characters;
# Exclude only those characters, which were really included
+ # NOTE: On bash-3, `COMP_WORDBREAKS' is empty which is ok; no
+ # additional word breaking is done on bash-3.
exclude="${1//[^$COMP_WORDBREAKS]}"
fi
--
bash-completion
More information about the Bash-completion-commits
mailing list