Next: Numeric tests, Previous: File characteristic tests, Up: test invocation
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.