-x表示 xtrace,-v表示详细。
-x
-v
在研究时,我发现bash -x“扩展命令”同时-v在执行之前将整个命令打印到标准输出。
bash -x
我在测试时看到的唯一区别是它bash -v <scriptname>也会显示每个命令的注释。
bash -v <scriptname>
这真的是唯一的区别吗?有人可以详细说明吗?
debugging bash shell zsh sh
bash ×1
debugging ×1
sh ×1
shell ×1
zsh ×1