I was messing around with bash true/false, and I noticed something non-standard:
$ if $varible_i_have_never_set_before; then echo yes; fi
yes
Bash empty variables seem to evaluate to true. Usually uninitialized booleans are inherently false, at least in most modern programming languages. Is there a good explanation for this? Is there any way to get the desired functionality, short of string comparisons?