Bash >> FAQ
1. When to wrap quotes around a variable?
General rule: quote it if it can either be empty or contain spaces (or any whitespace really). Not quoting strings with spaces often leads to the shell breaking apart a single argument into many.