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 EAA21451 for ; Sun, 28 Jul 1996 04:44:10 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id OAA24788; Sat, 27 Jul 1996 14:34:38 -0400 (EDT) Resent-Date: Sat, 27 Jul 1996 14:34:38 -0400 (EDT) From: "Bart Schaefer" Message-Id: <960727113530.ZM26061@candle.brasslantern.com> Date: Sat, 27 Jul 1996 11:35:30 -0700 In-Reply-To: Zoltan Hidvegi "Re: zsh-3.0-pre4 released" (Jul 27, 5:55pm) References: <199607271555.RAA13240@bolyai.cs.elte.hu> Reply-To: schaefer@nbn.com X-Mailer: Z-Mail (4.0b.702 02jul96) To: Zoltan Hidvegi Subject: Re: zsh-3.0-pre4 released Cc: zsh-workers@math.gatech.edu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"0DWAc1.0.B36.u4c-n"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1792 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Jul 27, 5:55pm, Zoltan Hidvegi wrote: } Subject: Re: zsh-3.0-pre4 released } } > TRAPHUP() { echo Hangup } } > trap "echo Hang UP" 1 } > } > causes an implicit "unfunction TRAPHUP" } > } > trap "echo Hangup" 1 } > TRAPHUP() { echo Hang UP } } > } > causes an implicit "trap - 1" } } Yes or course. That's quite similar to the old behaviour. OK, that's very good; but I think the documentation of this is a bit misleading. E.g. from the FAQ: ! Traps defined by the trap builtin are now executed in the current shell ! environment and not as a shell function. This means that $1 is not set ! to the signal number. Of course the TRAPxxx functions continue working ! as before. This sounds as though TRAPFOO() continues to fire ("functions continue working") even after `trap bar foo`; sort of as if TRAPxxx() and "trap" are now in completely separate "namespaces". -- 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"