conditional-operator
Bash -z string test
True if the string has zero length.
Formal Syntax & Structure
bash syntaxbash
[ -z string ]Return Value
exit status
True if the string has zero length.
Working Example
Example Snippetbash
[ -z '' ]printf '%s\n' "$?"