mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-02 16:51:06 -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") )
|
||||
else
|
||||
local words=("${COMP_WORDS[@]}")
|
||||
unset words[0]
|
||||
unset words[$COMP_CWORD]
|
||||
unset "words[0]"
|
||||
unset "words[$COMP_CWORD]"
|
||||
local completions=$(rbenv completions "${words[@]}")
|
||||
COMPREPLY=( $(compgen -W "$completions" -- "$word") )
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue