# 2021-01-17 #「Shell」- 杂记

# 显示当前Shell正在执行的命令

-「How to echo shell commands as they are executed
展开变量并在行前打印加号:set -xset -o xtrace
在打印之前,并不展开变量:set -vset -o verbose

# 当遇到错误时立即退出

-「bash: Trap error and exit
在执行脚本时,遇到错误立即退出:set -e

# 取消函数定义

-「How do I unset or get rid of a bash function?
执行命令:unset -f function_name

# PowerShell Gallery

Welcome to the PowerShell Gallery

猜你喜欢

转载自blog.csdn.net/u013670453/article/details/112756385