Caveat scriptor

If you need to write shell scripts, there are a few things to bear in mind.