2013年4月17日

set -x 与 set +x

摘要: 用于脚本调试。set是把它下面的命令打印到屏幕 set -x 是开启 set +x是关闭 set -o是查看 (xtrace),set去追中一段代码的显示情况。 执行set -x后,对整个脚本有效。 [root@mybox bin]# ls -l /bin/bash + ls --color=tty -l /bin/bash -rwxr-xr-x 1 root root 722... 阅读全文
posted @ 2013-04-17 15:58 Junior Panda 阅读(271) 评论(0) 推荐(0)