style(bash-v2): remove unnecessary $ from array index variables

This commit is contained in:
Ville Skyttä 2022-05-17 23:28:02 +03:00
parent 48a6fe5779
commit 10da1a8996

View file

@ -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
}