From 772007e76c430588b0b0a234e4db90e5ad50293d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 1 Jun 2005 10:45:32 +0000 Subject: 21296: Add ERR alias for ZERR where possible. "trap" reports alias names. --- Doc/Zsh/func.yo | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Doc/Zsh/func.yo') diff --git a/Doc/Zsh/func.yo b/Doc/Zsh/func.yo index bf5a9b2ae..2f6445873 100644 --- a/Doc/Zsh/func.yo +++ b/Doc/Zsh/func.yo @@ -222,11 +222,14 @@ Executed when the shell exits, or when the current function exits if defined inside a function. ) findex(TRAPZERR) +findex(TRAPERR) item(tt(TRAPZERR))( Executed whenever a command has a non-zero exit status. However, the function is not executed if the command occurred in a sublist followed by `tt(&&)' or `tt(||)'; only the final command in a sublist of this type -causes the trap to be executed. +causes the trap to be executed. The function tt(TRAPERR) acts the same as +tt(TRAPZERR) on systems where there is no tt(SIGERR) (this is the usual +case). ) enditem() -- cgit 1.4.1