From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16793 invoked from network); 2 Oct 2001 15:53:27 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 2 Oct 2001 15:53:27 -0000 Received: (qmail 28294 invoked by alias); 2 Oct 2001 15:53:18 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15928 Received: (qmail 28272 invoked from network); 2 Oct 2001 15:53:17 -0000 From: Bart Schaefer Message-Id: <1011002155307.ZM24747@candle.brasslantern.com> Date: Tue, 2 Oct 2001 15:53:07 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: On the subject of traps ... and notify ... MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I just noticed that if one installs a trap for the child-exited signal, the nonotify option gets ignored. That is: schaefer[505] TRAPCLD() { zle -I && print DING } schaefer[506] setopt nonotify schaefer[507] sleep 10 & [1] 24733 schaefer[508] echo this is a test DING schaefer[508] echo this is a test [1] + done sleep 10 schaefer[508] echo this is a test (type ^U and then) schaefer[508] unfunction -m TRAP\* schaefer[509] sleep 10 & [1] 24735 schaefer[510] echo THE OTHER WAS A TEST THE OTHER WAS A TEST [1] + done sleep 10 schaefer[511] (having sat waiting for at least 30 seconds after typing "A TEST" just to make sure the sleep had finished before I pressed enter). On a somewhat related note, it appears that one has to know whether to use TRAPCLD or TRAPCHLD depending on which signal "kill -l" reports as the one for your operating system. I would have thought that zsh would equate them. -- 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