You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 449:
stringarray="${stringarray[1]:10}";
^-- SC2178: Variable was used as an array but is now assigned a string.
Line 450:
if [[ "${stringarray}" != *'^{}' ]];
^-- SC2128: Expanding an array without an index only gives the first element.
This was not a mistake, I purposefully overwrote the array with a single string.
The problem is that, after doing that, shellcheck still keeps thinking the stringarray variable is an array, but it is a string and I am correctly accessing it.
This was not a mistake, I purposefully overwrote the array with a single string.
The problem is that, after doing that,
shellcheck
still keeps thinking thestringarray
variable is an array, but it is a string and I am correctly accessing it.Related:
local
usage #1309The text was updated successfully, but these errors were encountered: