• -eq treats this as a variable. Use = to compare as string (or expand explicitly with $var)
  • Problematic code:
  • Correct code:
  • Rationale:
  • Exceptions:
  • Related resources: