聲明這是我的腳本:嵌套如果shell腳本
echo "Name"
read name
if [ "$name" == "abcd" ]; then
echo "Password"
read password
if [ "$password == "pwd" ]; then
echo "Hello"
else
echo "Wrong password"
fi
else
echo "wrong username"
fi
這是輸出我得到當我運行它:什麼是錯在這裏
sh hello.sh Name abcd hello.sh: line 14: unexpected EOF while looking for matching `"' hello.sh: line 16: syntax error: unexpected end of file
任何想法?這可能是一個非常愚蠢的,但我浪費了將近一個小時。
哦crap..that就被忽視me..thanks很多 – hari 2011-04-20 07:24:58