• To assign the output of a command, use var=$(cmd) .
  • Problematic code:
  • Correct code:
  • Rationale:
  • Exceptions: