echo "Sorry, $timeofday not recognized. Enter yes or no"
exit 1
fi
exit 0
本來有錯的,我看著改了錯誤,編譯時出現了問題,大家看下 win@ubuntu:~$ chmod +x elif2 win@ubuntu:~$ ./elif2 : not found Is it morning? Please answer yes or no: yes : bad variable name ./elif2: 7: Syntax error: "elif" unexpected (expecting "then")