From 10da1a8996d6855667cad84fe7243150f5d54797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 17 May 2022 23:28:02 +0300 Subject: [PATCH] style(bash-v2): remove unnecessary $ from array index variables --- bash_completionsV2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_completionsV2.go b/bash_completionsV2.go index 4a300dea..72c1ae7a 100644 --- a/bash_completionsV2.go +++ b/bash_completionsV2.go @@ -258,7 +258,7 @@ __%[1]s_handle_special_char() local word=${comp%%"${comp##*${char}}"} local idx=${#COMPREPLY[*]} while ((--idx >= 0)); do - COMPREPLY[$idx]=${COMPREPLY[$idx]#"$word"} + COMPREPLY[idx]=${COMPREPLY[idx]#"$word"} done fi }