1. case ... esac
相当于switch分支判断语句,示例如下:
case "$TARGET_OS" in
Linux)
echo "Linux platform!"
;;
SunOS)
echo "SunOS platform!"
;;
*)
echo "Other platform!"
;;
esac1. case ... esac
相当于switch分支判断语句,示例如下:
case "$TARGET_OS" in
Linux)
echo "Linux platform!"
;;
SunOS)
echo "SunOS platform!"
;;
*)
echo "Other platform!"
;;
esac
2942

被折叠的 条评论
为什么被折叠?