2 ms·
How is: [ -z $var ] different from: [ $var ] ? I don't understand the distinction between a length-0 string and "the null string" in the context of
by cryptarch 9y ago
How is:
[ -z $var ]
different from:
[ $var ]
? I don't understand the distinction between a length-0 string and "the null string" in the context of /bin/sh.
I always just use [ "$var" ] and it's never failed me so far; should I be worried?