-
Notifications
You must be signed in to change notification settings - Fork 1.9k
SC2321
Joachim Ansorg edited this page Oct 31, 2022
·
2 revisions
values[$((i+1))]=1values[i+1]=1In indexed arrays (but not associative ones), the array index is already an arithmetic context. There is no point or value in wrapping it in an additional, explicit $((..)).
If ShellCheck has failed to realize that your array is associative, or if you for stylistic reasons prefer the redundancy, you can ignore this message.
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!