This website uses cookies to ensure you get the best experience.
Learn more.
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
- Add spaces around the assignment operator
- Rename the script with a shorter extension
- Double-quote the variable expansion
- Remove all quotes around the expansion
Comments — 0
Sign in to comment