Bash → Bash 算术运算符 → 二元 → ==NUMBER1 == NUMBER2 (arithmetic operator)true if the two numbers are equal.LinksBash manualAdvanced Bash-Scripting Guide: ExamplesPOSIX specification of testExamplesTest if two numbers are equal:1 (( n == 42 )) && echo "equal!" BashSupport Pro 是一个 支持 == 的 Bash 集成开发工具 – 马上试用!