检查语法错误 -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