From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6146 invoked from network); 4 Aug 1999 21:58:32 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 4 Aug 1999 21:58:32 -0000 Received: (qmail 25774 invoked by alias); 4 Aug 1999 21:58:20 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7359 Received: (qmail 25767 invoked from network); 4 Aug 1999 21:58:20 -0000 Message-ID: <14248.46736.675369.613655@pdx.itasoftware.com> Date: Wed, 4 Aug 1999 17:54:24 -0400 (EDT) From: greg@klanderman.net (Greg Klanderman) To: "Bart Schaefer" Cc: greg@klanderman.net, zsh-workers@sunsite.auc.dk (Zsh list) Subject: Re: TRAPEXIT question In-Reply-To: <990804044026.ZM12690@candle.brasslantern.com> References: <14247.14862.404409.655828@pdx.itasoftware.com> <990804044026.ZM12690@candle.brasslantern.com> Reply-To: greg@klanderman.net X-Mailer: VM 6.62 under 21.0 "Pyrenean" XEmacs Lucid (beta62) Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII >>>>> "Bart" == Bart Schaefer writes: > trip() { trap 'trap "echo trip" EXIT' EXIT } > trip() { trap 'TRAPEXIT() { echo trip }' EXIT } Cool. I was thinking I might try something like that next. > Now that I've answered the question ... can you tell me what's wrong with > using a .zlogout file instead? Yup, that'd probably work just fine... So is there an easy way to indirect through the value of a variable? I know I can use eval, but, for example, in BASH you can do foo=bar bar=baz echo ${!foo} -> baz thanks, Greg