$((..))expression? (or use
( (for arrays).
You appear to be missing the
$ on an assignment from an arithmetic expression
$, this is an array expression which is either nested (ksh) or invalid (bash).
If you are trying to define a multidimensional Ksh array, add spaces between the
( ( to clarify:
var=( (1 2 3) (4 5 6) )
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.