rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: callum.gibson@db.com
To: rc@hawkwind.utcs.utoronto.ca (rc Shell)
Subject: Re: non login "rc" needs customized environment
Date: Tue, 26 Feb 2002 20:46:23 -0500
Message-ID: <20020227014623.10430.qmail@merton.aus.deuba.com> (raw)
In-Reply-To: <20020215140436.28162.qmail@happy.star.le.ac.uk> from "tjg@star.le.ac.uk" at Feb 15, 2002 09:04:36 AM

tjg@star.le.ac.uk writes:
}4. I'm not at all keen to introduce any more compile-time options.
}   This implies that we must seek a solution which is acceptable to
}   everybody (or almost everybody).

It seems to me the default is backwards. Due to rc being invoked from
various place over which you may not have control (and hence can't add
the -l flag), rc should by default read .rcrc (or something). It is easy
to avoid reading it by adding a test to the first line, eg. (using the
level count variable someone suggested):

~ $rclvl () && {
rclvl=1
#rest of your usual .rcrc - put it in a file if you want and source it
#like this
. .rclogin
} || {
rclvl=`{expr $rclvl + 1}
# other stuff you might want to do every time.
}

We don't need a maze of twisty dot files, just one which is always read.
Since rc stuffs everything in environment variables things are inherited
by sub-rc-shells anyway, including functions.

Of course, the major problem is that this isn't backwards compatible.
What it _does_ allow is a choice between whether you get the startup
files or not, which the current default does not allow for.

    C

(c)2002 Callum Gibson                       callum.gibson@db.com
Global Markets IT, Deutsche Bank, Australia       61 2 9258 1620
### The opinions in this message are mine and not Deutsche's ###


  reply	other threads:[~2002-02-27  2:06 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-15  4:11 Byron Rakitzis
2002-02-15 14:04 ` Tim Goodwin
2002-02-27  1:46   ` callum.gibson [this message]
2002-02-27  2:16     ` Chris Siebenmann
2002-02-27 13:32       ` Carlo Strozzi
2002-02-27 13:29   ` Carlo Strozzi
2002-02-27 22:24     ` Matt H
2002-02-27  6:13 ` Derek Fawcus
  -- strict thread matches above, loose matches on Subject: below --
2002-02-27  6:29 Byron Rakitzis
2002-02-27  6:26 Russ Cox
2002-02-27  0:52 Byron Rakitzis
2002-02-14 17:44 Byron Rakitzis
2002-02-15  0:18 ` Dave Mason
2002-02-15  3:21 ` Scott Schwartz
2002-02-14 13:35 Smarasderagd
2002-02-15  0:37 ` Greg A. Woods
     [not found] <chet@nike.ins.cwru.edu>
2002-02-13 20:36 ` Chet Ramey
2002-02-14  2:16   ` Scott Schwartz
2002-02-14 23:35     ` Markus Friedl
2002-02-15  3:05       ` Scott Schwartz
2002-02-13 19:21 Peter Koch

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=20020227014623.10430.qmail@merton.aus.deuba.com \
    --to=callum.gibson@db.com \
    --cc=rc@hawkwind.utcs.utoronto.ca \
    /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

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.org/rc-list

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 rc-list rc-list/ https://inbox.vuxu.org/rc-list \
		rc@hawkwind.utcs.toronto.edu
	public-inbox-index rc-list

Example config snippet for mirrors.
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.git