Fix SC2199: Arrays implicitly concatenate in
: ${PROG:=$(basename ${BASH_SOURCE})}
_cli_bash_autocomplete() {
- if [[ "${COMP_WORDS[@]:0:$COMP_CWORD}" != "source" ]]; then
+ if [[ "${COMP_WORDS[0]}" != "source" ]]; then
local cur opts base
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
