rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: drazen@vlsi.cs.caltech.edu (D. Borkovic)
To: rc@hawkwind.utcs.toronto.edu
Subject: subshell, interactive, login, etc
Date: Thu, 25 Jun 1992 20:26:17 -0400	[thread overview]
Message-ID: <9206260026.AA20589@vlsi.cs.caltech.edu> (raw)


What do people out there think about this:

Every rc sources .rcrc, but before doing this defines
certain variable (say $mode) to have certain values
depending on the mode. 

Then you can do in .rcrc:

  switch ($mode){
    case login;  . $home/rc/login;
    case inter;  . $home/rc/inter;
    case inter_login; . $home/rc/inter; . $home/rc/login;
  }

Well, I did not think much about the values (inter_login looks
ugly), but I hope you get the idea.

Drazen


             reply	other threads:[~1992-06-26  0:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-06-26  0:26 D. Borkovic [this message]
1992-06-26  0:42 ` Scott Schwartz
1992-06-26  1:39 ` Chris Siebenmann
1992-06-26  1:41 Donn Cave
1992-06-26  2:07 ` Scott Schwartz
1992-06-26  8:10 ` Matthew Farwell
1992-06-26  3:57 Alan Watson
1992-06-26 10:33 malte
1992-06-26 13:57 Matthew Farwell

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=9206260026.AA20589@vlsi.cs.caltech.edu \
    --to=drazen@vlsi.cs.caltech.edu \
    --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).