$ set -e 这行代码之后的任何代码,如果返回一个非0的值,那么整个脚本立即退出,官方的说明是为了防止错误出现滚雪球的现象 $ set -o pipefail 原文解释如下: If set, the return value of a pipeline is the value of the last (rightmost) command to exit with ...
The shell shall expand the command substitution by executing command in a subshell environment (see Shell Execution Environment) and replacing the command substitution (the text of command plus the enclosing "$()" or backquotes) with the standard ...