From ce43e4a22c250fbaee14580b167986615455f78f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 19 Sep 2005 15:19:21 +0000 Subject: unposted c.f. 21735: document return as exit in try block in script --- Doc/Zsh/grammar.yo | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Doc') diff --git a/Doc/Zsh/grammar.yo b/Doc/Zsh/grammar.yo index d1f3996ef..dd5da93b4 100644 --- a/Doc/Zsh/grammar.yo +++ b/Doc/Zsh/grammar.yo @@ -287,8 +287,9 @@ example({ } # The error condition has been reset.) -An tt(exit) command encountered in tt(try-list) does em(not) cause the -execution of var(always-list). Instead, the shell exits immediately +An tt(exit) command (or a tt(return) command executed at the outermost +function level of a script) encountered in tt(try-list) does em(not) cause +the execution of var(always-list). Instead, the shell exits immediately after any tt(EXIT) trap has been executed. ) findex(function) -- cgit 1.4.1