Bash: Using or setting a default value for null or unset variables
If a variable is not set or if its value is null, the default behavior of Bash is to expand it to a null string. Bash provides three alternatives to this default behavior. Use a default value instead of the null string. Set a default value for the variable and use that value. Display an …
Bash: Using or setting a default value for null or unset variables Read More »