代码 if [ $1==a && $2==b ] then echo 'This a test shell script.' 解决 不应该是[ $1==a && $2==b ], 而应该是[[ $1==a && $2==b ]]