syntax error near unexpected token `then'
syntax error near unexpected token `then'
clearfunction test
{
if[$1 -eq "root"]&&[$2 -eq "123456"]
then
echo "Right"
else
echo "Wrong"
fi
}
clear
function test
{
if [ $1-eq"root" ] && [ $2-eq"123456" ]
then
echo "Right"
else
echo "Wrong"
fi
}
评论暂时关闭