[Bash-completion-commits] [bash-completion] 01/02: Quote unset array element to avoid globbing interference (Alioth: #314708)

Ville Skyttä scop-guest at moszumanska.debian.org
Tue Jun 3 20:11:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

scop-guest pushed a commit to branch master
in repository bash-completion.

commit 84135d756bd395aa720c3bd08c660bc54d24f90c
Author: Dams Nadé <alioth at livna.org>
Date:   Tue Jun 3 22:47:49 2014 +0300

    Quote unset array element to avoid globbing interference (Alioth: #314708)
---
 bash_completion | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bash_completion b/bash_completion
index 588b0c2..3e5c813 100644
--- a/bash_completion
+++ b/bash_completion
@@ -636,7 +636,7 @@ _variables()
                 _filedir
                 for i in ${!COMPREPLY[@]}; do
                     if [[ ${COMPREPLY[i]} == *.tab ]]; then
-                        unset COMPREPLY[i]
+                        unset 'COMPREPLY[i]'
                         continue
                     elif [[ -d ${COMPREPLY[i]} ]]; then
                         COMPREPLY[i]+=/
@@ -1686,7 +1686,7 @@ _command_offset()
         COMP_WORDS[i]=${COMP_WORDS[i+$word_offset]}
     done
     for (( i; i <= COMP_CWORD; i++ )); do
-        unset COMP_WORDS[i]
+        unset 'COMP_WORDS[i]'
     done
     ((COMP_CWORD -= $word_offset))
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git



More information about the Bash-completion-commits mailing list