From 28a62d5a4ba6a7eb8361583ad0f6f5b32e1a0ee9 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 4 Dec 2002 13:57:48 +0000 Subject: 17979: Add ERR_RETURN option. --- Doc/Zsh/options.yo | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Doc') 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)) )( -- cgit 1.4.1