These options test string characteristics. You may need to quote string arguments for the shell. For example:
test -n "$V"
The quotes here prevent the wrong arguments from being passed to
test
if ‘$V’ is empty or contains special characters.
True if the length of string is zero.
True if the length of string is nonzero.
True if the strings are equal.
True if the strings are equal (synonym for ‘=’). This form is not as portable to other shells and systems.
True if the strings are not equal.