conditional-operator
Bash -eq comparison
Numeric equality.
Formal Syntax & Structure
bash syntaxbash
[ a -eq b ]Return Value
exit status
Numeric equality.
Working Example
Example Snippetbash
[ '10' -eq '10' ]printf '%s\n' "$?"Numeric equality.
[ a -eq b ]Numeric equality.
[ '10' -eq '10' ]printf '%s\n' "$?"