• [ ! -o opt ] is always true because -o becomes logical OR. Use or ! [ -o opt ].
  • Problematic code:
  • Correct code:
  • Rationale:
  • Exceptions:
  • Related resources: