I would like to know what means -z ${var+x}
if [ -z ${VAR+x} ]; then
echo "Variable VAR is unset."
else
echo "VAR = ${VAR}."
I would like to understand in which case I should use this command.
I would like to understand in which case I should use this command.