[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-53-g03c2fe9
Igor Murzov
e-mail at date.by
Sun Nov 20 00:38:30 UTC 2011
The following commit has been merged in the master branch:
commit 03c2fe9301bbb77735550c7bbb28babe43238ec7
Author: Igor Murzov <e-mail at date.by>
Date: Sun Nov 20 04:35:40 2011 +0300
_command_offset: Add missing quotes.
Fixes recently added test for valgrind.
diff --git a/bash_completion b/bash_completion
index 56226f6..00f72f9 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1610,7 +1610,7 @@ _command_offset()
local word_offset=$1 i j
for (( i=0; i < $word_offset; i++ )); do
for (( j=0; j <= ${#COMP_LINE}; j++ )); do
- [[ $COMP_LINE == ${COMP_WORDS[i]}* ]] && break
+ [[ "$COMP_LINE" == "${COMP_WORDS[i]}"* ]] && break
COMP_LINE=${COMP_LINE:1}
((COMP_POINT--))
done
--
bash-completion
More information about the Bash-completion-commits
mailing list