From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23385 invoked from network); 10 Jun 2000 20:19:00 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 10 Jun 2000 20:19:00 -0000 Received: (qmail 9900 invoked by alias); 10 Jun 2000 20:18:53 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11858 Received: (qmail 9892 invoked from network); 10 Jun 2000 20:18:51 -0000 From: "Bart Schaefer" Message-Id: <1000610201611.ZM31861@candle.brasslantern.com> Date: Sat, 10 Jun 2000 20:16:11 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Local traps again: This is useful, but is it correct? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii One can bypass the "locatraps" option by creating a TRAPxxx function, e.g. the function remains defined after endtrapscope() but a trap created with `trap ... xxx' is removed. This is one of two reasons that Functions/Prompts/promp_bart_setup uses an assignment to the functions assoc to install a SIGWINCH handler, so I'm not sure I advocate changing it; but it at least ought to be mentioned in the doc under LOCAL_TRAPS. For completeness, I should point out that the TRAPxxx defintion only wins if there IS NOT already a trap for signal xxx at some higher scope. So it does behave somewhat inconsistently. I was about to doublecheck on what happens with `trap ... xxx' in that last situation, but zsh just crashed again, so I'm going to quit fooling with signals until Sven comes back online. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net