diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2012-11-15 21:08:15 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2012-11-15 21:08:15 +0000 |
commit | 7c56d771840a9f335b2e21290c8cbf714264bc66 (patch) | |
tree | 98907f1a578f3f13446d1ba91239088172807f01 /Doc/Zsh/options.yo | |
parent | 1446625072033fe1c53af7324a9245ef9cdcfad2 (diff) | |
download | zsh-7c56d771840a9f335b2e21290c8cbf714264bc66.tar.gz zsh-7c56d771840a9f335b2e21290c8cbf714264bc66.tar.xz zsh-7c56d771840a9f335b2e21290c8cbf714264bc66.zip |
30789: Add CONTINUE_ON_ERROR for old behaviour.
New behaviour is for scripts to exit on error instead of returning to top level and executing the next command.
Diffstat (limited to 'Doc/Zsh/options.yo')
-rw-r--r-- | Doc/Zsh/options.yo | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo index 3114ecc05..6c8d423cb 100644 --- a/Doc/Zsh/options.yo +++ b/Doc/Zsh/options.yo @@ -1733,6 +1733,22 @@ Make the tt(echo) builtin compatible with the BSD manref(echo)(1) command. This disables backslashed escape sequences in echo strings unless the tt(-e) option is specified. ) +pindex(CONTINUE_ON_ERROR) +pindex(NO_CONTINUE_ON_ERROR) +pindex(CONTINUEONERROR) +pindex(NOCONTINUEONERROR) +cindex(error, option to continue script on) +item(tt(CONTINUE_ON_ERROR))( +If a fatal error is encountered (see +ifnzman(noderef(Errors))\ +ifzman(the section ERRORS in zmanref(zshmisc))), and the code is running +in a script, the shell will resume execution at the next statement +in the script at the top level, in other words outside all functions +or shell constructs such as loops and conditions. This mimics the +behaviour of interactive shells, where the shell returns to the +line editor to read a new command; it was the normal behaviour in versions +of zsh before 5.0.1. +) pindex(CSH_JUNKIE_HISTORY) pindex(NO_CSH_JUNKIE_HISTORY) pindex(CSHJUNKIEHISTORY) |