From e7ff1931eaef0e265bc532bf54b43baacaf99378 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 10 Aug 2005 07:47:49 +0000 Subject: A couple more minor tweaks to the "trap" section. --- Doc/Zsh/builtins.yo | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Doc') diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index eb220fe40..0ae467c42 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -1157,12 +1157,14 @@ cindex(trapping signals) item(tt(trap) [ var(arg) ] [ var(sig) ... ])( var(arg) is a series of commands (usually quoted to protect it from immediate evaluation by the shell) to be read and executed when the shell -receives any of the signals var(sig). +receives any of the signals specified by one or more var(sig) args. Each var(sig) can be given as a number, or as the name of a signal either with or without the string tt(SIG) -in front. +in front (e.g. 1, HUP, and SIGHUP are all the same signal). + If var(arg) is `tt(-)', then the specified signals are reset to their defaults, or, if no var(sig) args are present, all traps are reset. + If var(arg) is an empty string, then the specified signals are ignored by the shell (and by the commands it invokes). -- cgit 1.4.1