rc-list - mailing list for the rc(1) shell
 help / Atom feed
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
Message-ID: <20020405083544.19565.qmail@happy.star.le.ac.uk> (raw)
In-Reply-To: <200204042154.g34LsCA02397@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.


  reply index

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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
2002-04-04 21:54 Byron Rakitzis
2002-04-05  8:35 ` Tim Goodwin [this message]
2002-04-05  1:38 smarry

Reply instructions:

You may reply publically 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

rc-list - mailing list for the rc(1) shell

Archives are clonable: git clone --mirror http://inbox.vuxu.org/rc-list

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.rc-list


AGPL code for this site: git clone https://public-inbox.org/ public-inbox