mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-11 14:58:41 -05:00
Merge pull request #1253 from scop/bash-completion-globbing
bash completion: avoid unintentional globbing
This commit is contained in:
commit
0843745be9
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,8 @@ _rbenv() {
|
||||||
COMPREPLY=( $(compgen -W "$(rbenv commands)" -- "$word") )
|
COMPREPLY=( $(compgen -W "$(rbenv commands)" -- "$word") )
|
||||||
else
|
else
|
||||||
local words=("${COMP_WORDS[@]}")
|
local words=("${COMP_WORDS[@]}")
|
||||||
unset words[0]
|
unset "words[0]"
|
||||||
unset words[$COMP_CWORD]
|
unset "words[$COMP_CWORD]"
|
||||||
local completions=$(rbenv completions "${words[@]}")
|
local completions=$(rbenv completions "${words[@]}")
|
||||||
COMPREPLY=( $(compgen -W "$completions" -- "$word") )
|
COMPREPLY=( $(compgen -W "$completions" -- "$word") )
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue