• In POSIX sh, unary -o to check options is undefined.
  • Problematic code:
  • Correct code:
  • Rationale:
  • Exceptions:
  • Related resources: