• Use var=$(command) to assign output (or quote to assign string).
  • Problematic code:
  • Correct code:
  • Rationale:
  • Exceptions:
  • Related resources: