|
vi test-ifthen.sh
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
sh test-ifthen.sh hello
[hello==hello]:command not found
[hello==]:command not found
这个问题是怎么回事?! 谢谢!! |
|