set -x 跟踪脚本执行信息
注意set -x其中"-"与"x"之间没有空格
[root@GitLab sh]# ./sx.sh heelo + a=heelo + echo heelo heelo [root@GitLab sh]# cat sx.sh #!/bin/bash set -x a=$1 echo $a
联系方式QQ:326528263 EMAIL:clnking@163.com 网名:bass 分享技术 突破难点 创新思维
注意set -x其中"-"与"x"之间没有空格
[root@GitLab sh]# ./sx.sh heelo + a=heelo + echo heelo heelo [root@GitLab sh]# cat sx.sh #!/bin/bash set -x a=$1 echo $a