Lazy-Newb-Pack / Lazy-Newb-Pack-Linux

A Lazy Newb Pack for Linux
http://lazynewbpack.com/
150 stars 12 forks source link

How to determine if a bash variable is empty? #8

Closed gronono closed 9 years ago

gronono commented 9 years ago

According http://serverfault.com/questions/7503/how-to-determine-if-a-bash-variable-is-empty, Using if [ -z "$VAR" ]; is better than if [ "x$variable" = "x" ]

lethosor commented 9 years ago

:+1: