From 8bc71e9161203da5b76eada424ae9174b237b5a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 26 May 2020 22:31:38 +0300 Subject: [PATCH] bash completion: avoid unintentional globbing --- completions/rbenv.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/completions/rbenv.bash b/completions/rbenv.bash index fe0784ac..565d77c3 100644 --- a/completions/rbenv.bash +++ b/completions/rbenv.bash @@ -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