From: greg@klanderman.net (Greg Klanderman)
To: "Bart Schaefer" <schaefer@candle.brasslantern.com>
Cc: greg@klanderman.net, zsh-workers@sunsite.auc.dk (Zsh list)
Subject: Re: TRAPEXIT question
Date: Wed, 4 Aug 1999 17:54:24 -0400 (EDT) [thread overview]
Message-ID: <14248.46736.675369.613655@pdx.itasoftware.com> (raw)
In-Reply-To: <990804044026.ZM12690@candle.brasslantern.com>
>>>>> "Bart" == Bart Schaefer <schaefer@candle.brasslantern.com> 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
next prev parent reply other threads:[~1999-08-04 21:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-03 18:50 Greg Klanderman
1999-08-04 4:40 ` Bart Schaefer
1999-08-04 7:47 ` Peter Stephenson
1999-08-04 21:54 ` Greg Klanderman [this message]
1999-08-05 8:34 ` Peter Stephenson
1999-08-05 10:51 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14248.46736.675369.613655@pdx.itasoftware.com \
--to=greg@klanderman.net \
--cc=schaefer@candle.brasslantern.com \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).