shell编程在实际工作中经常用到,但是如何高效的进行debug呢?比较简单的用法:
sh -x test.sh
output:
+ parament=test
+ echo test
test
具体的debug调试可参考:
https://blog.csdn.net/Jerry_1126/article/details/52096886;
https://www.ibm.com/developerworks/cn/linux/l-cn-shell-debug/index.html
原文:https://www.cnblogs.com/baisheng/p/11831320.html