[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-47-g068a1a1

Igor Murzov e-mail at date.by
Wed Nov 16 20:21:45 UTC 2011


The following commit has been merged in the master branch:
commit b3fcb55dcf3d5a99d9a705a54dd649a976706d3f
Author: Igor Murzov <e-mail at date.by>
Date:   Wed Nov 16 23:46:29 2011 +0300

    __get_cword_at_cursor_by_ref: Add missing quotes.
    
    Fixes  _get_comp_words_by_ref() and sftp tests (Alioth #313102).

diff --git a/bash_completion b/bash_completion
index 0e83c9d..dc054ae 100644
--- a/bash_completion
+++ b/bash_completion
@@ -324,7 +324,7 @@ __get_cword_at_cursor_by_ref()
             if [[ "$i" -lt "$cword" ]]; then
                 # No, cword lies further;
                 local old_size="${#cur}"
-                cur="${cur#${words[i]}}"
+                cur="${cur#"${words[i]}"}"
                 local new_size="${#cur}"
                 index=$(( index - old_size + new_size ))
             fi

-- 
bash-completion



More information about the Bash-completion-commits mailing list