From 6ebb9f6a31f362ecd55c79e647fe09c0b0712039 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 14 Mar 2014 19:41:18 +0000 Subject: unposted: document effect of 32479 on POSIX_TRAPS --- Doc/Zsh/options.yo | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Doc') diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo index 3c6ea63b8..7cfbdef23 100644 --- a/Doc/Zsh/options.yo +++ b/Doc/Zsh/options.yo @@ -2037,7 +2037,10 @@ When the is option is set, the usual zsh behaviour of executing traps for tt(EXIT) on exit from shell functions is suppressed. In that case, manipulating tt(EXIT) traps always alters the global trap for exiting the shell; the tt(LOCAL_TRAPS) option is -ignored for the tt(EXIT) trap. +ignored for the tt(EXIT) trap. Furthermore, a tt(return) statement +executed in a trap with no argument passes back from the function the +value from the surrounding context, not from code executed within the +trap. ) pindex(SH_FILE_EXPANSION) pindex(NO_SH_FILE_EXPANSION) -- cgit 1.4.1