• Use $((..)) for arithmetics, e.g. i=$((i + 2))
  • Problematic code:
  • Correct code:
  • Rationale:
  • Exceptions:
  • Related resources: