背景

如果shell脚本能回显执行的命令语句,那么调试起来就比较方便

做法

在shell脚本开头加入

#!/bin/sh
set -v on

nicephil@gmail.com – 2017-12-13

相关文章: