A message displays containing the line number and command when the trap was caught; the script then exits (from the exit command on the trap command list).
在捕捉到trap后,会显示一条包含行号和命令的消息;脚本随后将退出执行(使用trap命令列表中的exit命令)。
The ERR goes with the signal list within the trap command. In the following example, a non-existent file is copied, which invokes an error
ERR 在 trap 命令中提供了一个信号列表。
应用推荐