conditional-operator
Bash = comparison
Literal string equality in test.
Formal Syntax & Structure
bash syntaxbash
[ a = b ]Return Value
exit status
Literal string equality in test.
Working Example
Example Snippetbash
[ 'blue' = 'blue' ]printf '%s\n' "$?"