1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-17 15:01:40 +02:00

Fix docs for TRAPNAL function return

This commit is contained in:
Peter Stephenson 2005-10-02 19:04:35 +00:00
parent f5d7af2912
commit 4ecc04ec8b
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2005-10-02 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
* unposted, c.f. 21799: Doc/Zsh/func.yo: documentation for
returns from TRAPNAL functions was wayward.
2005-10-01 Wayne Davison <wayned@users.sourceforge.net> 2005-10-01 Wayne Davison <wayned@users.sourceforge.net>
* unposted: Src/utils.c: changed PROMPT_SP to use the prompt- * unposted: Src/utils.c: changed PROMPT_SP to use the prompt-

View file

@ -196,9 +196,8 @@ the shell and processes spawned by it will ignore tt(SIG)var(NAL).
The return status from the function is handled specially. If it is The return status from the function is handled specially. If it is
zero, the signal is assumed to have been handled, and execution continues zero, the signal is assumed to have been handled, and execution continues
normally. Otherwise, the normal effect of the signal is produced; normally. Otherwise, the shell will behave as interrupted except that
if this causes execution to terminate, the status returned to the shell is the return status of the trap is retained.
the status returned from the function.
Programs terminated by uncaught signals typically return the status 128 Programs terminated by uncaught signals typically return the status 128
plus the signal number. Hence the following causes the handler for plus the signal number. Hence the following causes the handler for