#! /bin/bash
echo "Is it morning? Please answer yes or no"
read YES_OR_NO
case "$YES_OR_NO" in
yes|y|Yes|YES|Y)
echo "Good morning";;
[nN]*)
echo "Good afternoon";;
*)
echo "Sorry, $YES_OR_NO not recognized.Enter yes or no."
esac
echo "before return"
return 0
echo "after return"
exit 0
# ;; means "break"
01-20
09-11
984
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)