re: Thanks! I thought that only variables without curly braces should be wrapped in quotes. I'll update the article later to include this, thanks for t...
 

If you're using #! /bin/sh you have to be POSIX compliant, otherwise you might destroy something along the way, because you cannot know what shell you are running on.
If you are relying on bash built-in, obviously you have to specify that, otherwise you might again destroy stuff.

code of conduct - report abuse