From 197c46cd35d6fd2f4165237573c7223ed513d0f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Schplurtz=20le=20D=C3=A9boulonn=C3=A9?= Date: Tue, 19 Feb 2019 10:58:37 +0100 Subject: [PATCH] change comp_words to upper case --- VBoxManage | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/VBoxManage b/VBoxManage index 740330e..2a689a2 100644 --- a/VBoxManage +++ b/VBoxManage @@ -1029,8 +1029,8 @@ _VBoxManage() { --ignore-operhaned-processes --profile --dos2unix --unix2dos --username --domain --) - [[ " ${comp_words[@]} " != *" --password "* || - " ${comp_words[@]} " != *" --passwordfile "* ]] && + [[ " ${COMP_WORDS[@]} " != *" --password "* || + " ${COMP_WORDS[@]} " != *" --passwordfile "* ]] && items+=(--passwordfile --password) [[ " ${COMP_WORDS[@]} " != *" --putenv "* && " ${COMP_WORDS[@]} " != *" -E "* ]] && @@ -1057,8 +1057,8 @@ _VBoxManage() { --ignore-operhaned-processes --profile --username --domain --passwordfile --password --) - [[ " ${comp_words[@]} " != *" --password "* || - " ${comp_words[@]} " != *" --passwordfile "* ]] && + [[ " ${COMP_WORDS[@]} " != *" --password "* || + " ${COMP_WORDS[@]} " != *" --passwordfile "* ]] && items+=(--passwordfile --password) [[ " ${COMP_WORDS[@]} " != *" --verbose "* && " ${COMP_WORDS[@]} " != *" -v "* ]] && @@ -1078,8 +1078,8 @@ _VBoxManage() { [[ " ${COMP_WORDS[@]} " != *" --recursive "* && " ${COMP_WORDS[@]} " != *" -R "* ]] && items+=(--recursive -R) - [[ " ${comp_words[@]} " != *" --password "* || - " ${comp_words[@]} " != *" --passwordfile "* ]] && + [[ " ${COMP_WORDS[@]} " != *" --password "* || + " ${COMP_WORDS[@]} " != *" --passwordfile "* ]] && items+=(--passwordfile --password) [[ " ${COMP_WORDS[@]} " != *" --verbose "* && " ${COMP_WORDS[@]} " != *" -v "* ]] &&