From: Tim Goodwin <tjg@star.le.ac.uk>
To: rc@hawkwind.utcs.toronto.edu
Subject: Re: rc 1.6 $version
Date: Fri, 5 Apr 2002 03:35:44 -0500 [thread overview]
Message-ID: <20020405083544.19565.qmail@happy.star.le.ac.uk> (raw)
In-Reply-To: <200204042154.g34LsCA02397@rakitzis.com> (byron@rakitzis.com)
> I would have thought you'd want to export $prompt.
It's exported if it's changed from the default.
The motivation for doing so was this little snippet:
$ env - rc
; printenv
PATH=/usr/local/bin:/usr/bin:/bin:.
prompt=; ^A
No point in cluttering the environment with a value that any
descendant rc process would default to anyway. And since I'd just
invented the mechanism to export $version only if it's assigned to
(all 3 lines of code of it!), I thought I'd use it.
So in the dev version, we get this.
$ env - rc
; printenv
PATH=/usr/local/bin:/usr/bin:/bin:.
; prompt=('rc$ ' '')
rc$ printenv
PATH=/usr/local/bin:/usr/bin:/bin:.
prompt=rc$ ^A
(And even PATH goes away if you build with `--disable-def-path'.)
Tim.
next prev parent reply other threads:[~2002-04-05 9:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-04 21:54 Byron Rakitzis
2002-04-05 8:35 ` Tim Goodwin [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-04-05 1:38 Smarasderagd
2002-03-14 22:37 erik quanstrom
2002-03-27 13:27 ` Tim Goodwin
2002-03-27 21:12 ` Carlo Strozzi
2002-03-30 18:43 ` Paul Haahr
2002-03-31 15:13 ` Carlo Strozzi
2002-04-03 14:31 ` Tim Goodwin
2002-04-03 15:06 ` Paul Haahr
2002-04-04 10:04 ` Tim Goodwin
2002-04-04 21:42 ` Scott Schwartz
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=20020405083544.19565.qmail@happy.star.le.ac.uk \
--to=tjg@star.le.ac.uk \
--cc=rc@hawkwind.utcs.toronto.edu \
/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.
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).