NUMBER1 == NUMBER2 (arithmetic operator)

true if the two numbers are equal.

Examples

Test if two numbers are equal:
1
(( n == 42 )) && echo "equal!"
BashSupport Pro 是一个 支持 == 的 Bash 集成开发工具 – 马上试用!
© 2020–2026 Joachim Ansorg
声明
隐私政策
许可条款