OpenVMS DCL命令显示HELP ON EXAMPLE
:
上
例子
1.$ ON SEVERE_ERROR THEN CONTINUE A command procedure that contains this statement continues to execute normally when a warning or error occurs during execution. When a severe error occurs, the ON statement signals the procedure to execute the next statement anyway. Once the statement has been executed as a result of the severe error condition, the default action (ON ERROR THEN EXIT) is reinstated.
根据帮助,如果既不存在[-]x.for
也不[-]y.for
存在,则不会执行最后两行:
$ on error then $ continue
$ rename [-]x.for []
$ rename [-]y.for []
$ type *.for
有没有办法像第一行一样设置处理,而在脚本的每一行之间ON ERROR
放置一个语句?ON ERROR