• In POSIX sh, $[..] in place of $((..)) is undefined.
  • Problematic code:
  • Correct code:
  • Rationale:
  • Exceptions:
  • Related resources: