• Prefer explicit -n to check non-empty string (or use =/-ne to check boolean/integer).
  • Problematic code:
  • Correct code:
  • Rationale:
  • Exceptions:
  • Related resources: