[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.0-142-ge191799

Igor Murzov e-mail at date.by
Sat Mar 9 11:35:28 UTC 2013


The following commit has been merged in the master branch:
commit e191799dea5b38272dba7e5efe60b3adf86311e5
Author: AllKind <allkind at fastest.cc>
Date:   Wed Mar 6 00:40:06 2013 +0100

    Fix __ltrim_colon_completions() fail on parameter (\$1) containing a glob.

diff --git a/bash_completion b/bash_completion
index aa61c86..41b4bc0 100644
--- a/bash_completion
+++ b/bash_completion
@@ -509,7 +509,7 @@ __ltrim_colon_completions()
 {
     if [[ "$1" == *:* && "$COMP_WORDBREAKS" == *:* ]]; then
         # Remove colon-word prefix from COMPREPLY items
-        local colon_word=${1%${1##*:}}
+        local colon_word=${1%"${1##*:}"}
         local i=${#COMPREPLY[*]}
         while [[ $((--i)) -ge 0 ]]; do
             COMPREPLY[$i]=${COMPREPLY[$i]#"$colon_word"}

-- 
bash-completion



More information about the Bash-completion-commits mailing list