Go to the first, previous, next, last section, table of contents.
These options test string characteristics. Strings are not quoted for
test
, though you may need to quote them to protect characters
with special meaning to the shell, e.g., spaces.
- `-z string'
-
True if the length of string is zero.
- `-n string'
-
- `string'
-
True if the length of string is nonzero.
- `string1 = string2'
-
True if the strings are equal.
- `string1 != string2'
-
True if the strings are not equal.
Go to the first, previous, next, last section, table of contents.