# 显示当前Shell正在执行的命令
-「How to echo shell commands as they are executed」
展开变量并在行前打印加号:set -x,set -o xtrace
在打印之前,并不展开变量:set -v,set -o verbose
# 当遇到错误时立即退出
-「bash: Trap error and exit」
在执行脚本时,遇到错误立即退出:set -e
# 取消函数定义
-「How do I unset or get rid of a bash function?」
执行命令:unset -f function_name