mirror of
https://github.com/pyenv/pyenv.git
synced 2025-04-10 21:05:07 +00:00
bash completion: avoid unintentional globbing
This commit is contained in:
parent
c879cb0f2f
commit
8bc71e9161
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…
Add table
Reference in a new issue