• Array indices are already arithmetic contexts. Prefer removing the $(( and )).
  • Problematic code:
  • Correct code:
  • Rationale:
  • Exceptions:
  • Related resources: