建议将if (("$a" -eq "$b"))改为if [ $a -eq $b ],注意括号两边的空格(你说得对,如果一行只有一条语句,不需要分号)。
if what; thenelsefi后面少了分号