diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2002-12-04 13:57:48 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2002-12-04 13:57:48 +0000 |
commit | 28a62d5a4ba6a7eb8361583ad0f6f5b32e1a0ee9 (patch) | |
tree | 114fbfdf69dc40dd86a029573f22b86ead2dfe81 /Doc/Zsh | |
parent | 252da01c87086db05083be7e66804e28fcf50c89 (diff) | |
download | zsh-28a62d5a4ba6a7eb8361583ad0f6f5b32e1a0ee9.tar.gz zsh-28a62d5a4ba6a7eb8361583ad0f6f5b32e1a0ee9.tar.xz zsh-28a62d5a4ba6a7eb8361583ad0f6f5b32e1a0ee9.zip |
17979: Add ERR_RETURN option.
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/options.yo | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo index 27f6b7e91..3616ae50c 100644 --- a/Doc/Zsh/options.yo +++ b/Doc/Zsh/options.yo @@ -380,6 +380,16 @@ If a command has a non-zero exit status, execute the tt(ZERR) trap, if set, and exit. This is disabled while running initialization scripts. ) +pindex(ERR_RETURN) +cindex(function return, on error) +cidnex(return from function, on error) +item(tt(ERR_RETURN))( +If a command has a non-zero exit status, return immediately from the +enclosing function. The logic is identical to that for tt(ERR_EXIT), +except that an implicit tt(return) statement is executed instead of an +tt(exit). This will trigger an exit at the outermost level of a +non-interactive script. +) pindex(EXEC) cindex(command execution, enabling) item(tt(EXEC) (tt(PLUS()n), ksh: tt(PLUS()n)) <D>)( |