---

How to manage the expansion of empty or unset bash variables

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.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis