shell 脚本中set-x 与set+x的区别

版权声明:小妖666个人笔记 https://blog.csdn.net/weixin_38883338/article/details/86421110

set -x与set +x指令用于脚本调试

set是把它下面的命令打印到屏幕

set -x 开启 

set +x关闭

set -o 查看

猜你喜欢

转载自blog.csdn.net/weixin_38883338/article/details/86421110