• Parameter expansion can't be applied to command substitutions. Use temporary variables.
  • Problematic code:
  • Correct code:
  • Rationale:
  • Exceptions:
  • Related resources: