How to determine if a bash variable is empty?
- by Brent
What is the best way to determine if a variable in bash contains ""?
I have heard it recommended that I do if [ "x$variable" = "x" ]
Is that the correct way? (there must be something more straightforward)