The following commit has been merged in the master branch:
commit b3fcb55dcf3d5a99d9a705a54dd649a976706d3f
Author: Igor Murzov <[email protected]>
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
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits