Does Bash have an option to diagnose (and optionally abort execution) "expanded to empty value" variables?
Example (hypothetical):
$ bash -c 'echo $x' --xxx
bash: line 1: variable 'x' expanded to empty value
Reason for the question: such an option may be useful when debugging scripts.
For example, in some script all variables are expected to expand to a non-empty values. Hence, using an option to detect (and optionally abort execution) "expanded to empty value" variables may be useful for such case.
I've already searched for this option in set
builtin, but have found nothing.