shell 脚本4 检查脚本错误

检查语法错误

-n    

bash    -n   /path/to/some_script

bash    -n    f1.sh

调试执行

 跟踪调试

 bash   -x   /path/to/some_script

原文地址:https://www.cnblogs.com/liang-1/p/8835297.html