The following commit has been merged in the master branch:
commit 03c2fe9301bbb77735550c7bbb28babe43238ec7
Author: Igor Murzov <[email protected]>
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

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits

Reply via email to