2025-11-23 20:34 浏览次数 12
就执行错误陷阱
errexit : If a command has an exit status of anything but 0 (zero), execute the ERR trap (if it is set and exists).
errexit:如果某个命令产生非0(零)的退出状态并且设置了ERR陷阱,则执行ERR陷阱并退出。