Of all the Linux commands, rm is notorious. It's easy to completely wipe out your system with one mislaid rm command as root.
Encountering unset variables is common when scripting. Often your script needs to ask questions about values before using ...