A shell script assigns a path containing spaces to a variable and passes it to a command. What prevents unintended word splitting of that argument?

Published
  1. Add spaces around the assignment operator
  2. Rename the script with a shorter extension
  3. Double-quote the variable expansion
  4. Remove all quotes around the expansion

Comments — 0