diff --git a/scripts/bash-completion.sh b/scripts/bash-completion.sh index f934a71..47f50cf 100644 --- a/scripts/bash-completion.sh +++ b/scripts/bash-completion.sh @@ -5,9 +5,9 @@ _ybconAutoComplete() { COMPREPLY=() current="${COMP_WORDS[COMP_CWORD]}" previous="${COMP_WORDS[COMP_CWORD-1]}" - options='-h -p --help --version --printresult' + options='-h -p --help --printresult --version' if [[ "${current}" == -* ]]; then - COMPREPLY=("$(compgen -W "$options" -- "$current")") + mapfile -t COMPREPLY <<< "$(compgen -W "$options" -- "$current") " return 0 fi }