shell 脚本打印行号和执行过程

107 阅读1分钟

shell 脚本打印行号和执行过程在 debug 过程中是不可缺少的

set -x

export PS4='+ (basename(basename 0):${LINENO}: '