Variables expansion is one of the most common feature used in the shell: when a variable exists and is part of a command, it is “expanded”, so that is substituted by its value. The expansion of empty variables, is one of those things, that if not well managed, could cause serious damage to a system.