From c3f51bed6fffdf84227c5b59bd3f2e90683314df Mon Sep 17 00:00:00 2001 From: Yogesh Lonkar Date: Mon, 5 Aug 2019 17:07:46 +0200 Subject: [PATCH] Fix SC2199: Arrays implicitly concatenate in --- autocomplete/bash_autocomplete | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autocomplete/bash_autocomplete b/autocomplete/bash_autocomplete index a118bda..f0f6241 100755 --- a/autocomplete/bash_autocomplete +++ b/autocomplete/bash_autocomplete @@ -3,7 +3,7 @@ : ${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]}"