If you don't quote your variables the scripts get very buggy if you run them with arguments with spaces in them, or even run them from a directory with spaces in its path.