注意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 分享技术 突破难点 创新思维
wx58df4443e3647 ©著作权
注意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 分享技术 突破难点 创新思维
的值,但可以看到在脚本内并没有给定变...
shell 脚本调试系列本系列的前面部分清晰地阐明了另外两种 shell 脚本调试模式:
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M