Shell跟踪功能
#! /bin/sh set -x echo 1st echo set+x +x echo 2nd echo
输出
+ echo 1st echo 1st echo + set +x 2nd echo
可以发现,1st echo之上,有调用的命令,包括关闭跟踪这条命令,也会输出
posted on 2021-04-07 14:31 toughcactus 阅读(53) 评论(0) 编辑 收藏 举报
#! /bin/sh set -x echo 1st echo set+x +x echo 2nd echo
输出
+ echo 1st echo 1st echo + set +x 2nd echo
可以发现,1st echo之上,有调用的命令,包括关闭跟踪这条命令,也会输出
posted on 2021-04-07 14:31 toughcactus 阅读(53) 评论(0) 编辑 收藏 举报