shell检查语法模式

方法

sh -n test.sh

直接上例子

在这里插入图片描述

原文地址:https://www.cnblogs.com/yldf/p/11900042.html