注意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




网名:bass 分享技术 突破难点 创新思维