

While I agree in general, that wouldn’t have helped in this case, and likely would have just made things worse. He couldn’t draw on the Karen for being a racist piece of trash, and his next interaction was with the police, whom he certainly couldn’t have drawn on. Then the cops would have trumped up the charges because he was armed, and he never would have seen the gun again after it disappeared into the evidence locker.
You’re probably wanting
[ -z "${VAR1}" -a -z "${VAR2}" ]
. Note in bash that there are minor differences in how[ ]
and[[ ]]
tests are handled. You can pull up a handy cheat sheet of the operands on most distros by runningman test
, though you’ll need to read through the CONDITIONAL EXPRESSIONS section ofman bash
if you want to see the minor differences of the single vs double square bracket commands (mostly whether locale applies to string order, as well as whether operands are evaluated in numeric comparisons).