index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Luke Shumaker <lukeshu@parabola.nu> | 2017-05-05 18:41:08 -0400 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-07-14 06:57:23 +0200 |
commit | c440e6f1c531688668ae25924f85cc45980f8295 (patch) | |
tree | ccb404a660ae827fdbbd45c00eddc11831e6e216 /bash_completion.in | |
parent | 18e2fc20d4eeaa17d4aa1b9b5e323598d68e5227 (diff) |
-rw-r--r-- | bash_completion.in | 4 |
diff --git a/bash_completion.in b/bash_completion.in index f0a6bd0..9feef74 100644 --- a/bash_completion.in +++ b/bash_completion.in @@ -5,8 +5,8 @@ _devtools_compgen() { local i r COMPREPLY=($(compgen -W '$*' -- "$cur")) for ((i=1; i < ${#COMP_WORDS[@]}-1; i++)); do - for r in ${!COMPREPLY[@]}; do - if [[ ${COMP_WORDS[i]} = ${COMPREPLY[r]} ]]; then + for r in "${!COMPREPLY[@]}"; do + if [[ ${COMP_WORDS[i]} = "${COMPREPLY[r]}" ]]; then unset 'COMPREPLY[r]'; break fi done |