1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-30 07:10:58 +02:00

unposted c.f. 21735: document return as exit in try block in script

This commit is contained in:
Peter Stephenson 2005-09-19 15:19:21 +00:00
parent bd678526b3
commit ce43e4a22c
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2005-09-19 Peter Stephenson <pws@csr.com>
* unposted, c.f. 21735: Doc/Zsh/grammar.yo: document
that return at the top level of a script behaves like exit
in a try-block.
2005-09-17 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
* 21731: Src/prompt.c, Src/Zle/zle_refresh.c: count multibyte

View file

@ -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)