新手提问 shell scripts
if[ "$1"=="hellp" ];thenecho "Hello! How are you?"
elif [ "$1"=="" ];then
echo "You must input paramenters"
else
echo "The only accept parameter is hello"
fi
无论现在输什么都是 Hello!How are you? 这是怎么回事?! 谢谢!! 少了空格:
if[ "$1" == "hellp" ];then
echo "Hello! How are you?"
elif [ "$1" == "" ];then
echo "You must input paramenters"
else
echo "The only accept parameter is hello"
fi
页:
[1]