From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id FAA16324 for ; Sun, 7 Jul 1996 05:14:21 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id PAA17653; Sat, 6 Jul 1996 15:08:46 -0400 (EDT) Resent-Date: Sat, 6 Jul 1996 15:08:46 -0400 (EDT) From: "Bart Schaefer" Message-Id: <960706120928.ZM17771@candle.brasslantern.com> Date: Sat, 6 Jul 1996 12:09:25 -0700 Reply-To: schaefer@nbn.com X-Mailer: Z-Mail (4.0b.702 02jul96) To: zsh-workers@math.gatech.edu Subject: Odd behavior of "trap" and "functions" in 3.0-pre2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"tRVab.0.iJ4.zchtn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1542 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu I create a TRAPALRM function in .zshrc to update my titlebar. No problem with that ... zagzig<13> trap TRAPALRM () { TMOUT=60 title } So now I add another trap ... zagzig<14> trap "echo foo" USR2 zagzig<15> kill -USR2 $$ foo So far so good ... zagzig<16> trap TRAPUSR2 () { echo foo } TRAPALRM () { TMOUT=60 title } All fine. However ... zagzig<17> grep TRAP <<(functions) TRAPALRM () { zagzig<18> I'm almost certain that `functions` used to list all the TRAPxxx .... -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.nbn.com/people/lantern New male in /home/schaefer: >N 2 Justin William Schaefer Sat May 11 03:43 53/4040 "Happy Birthday"