6

The test command on Unix-like systems provides two special syntax forms for checking whether a string is empty or not:
test -z "$foo" # the length of $foo is zero
test -n "$foo" # the length of $foo is nonzero
These forms are actually redundant, and equivalent to the following:
test "$foo" = ""
...