rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: arnold@audiofax.com (Arnold Robbins)
To: rc@archone.tamu.edu
Subject: naming conventions
Date: Wed, 3 Jul 1991 12:54:05 -0500	[thread overview]
Message-ID: <9107031754.AA05851@audfax.audiofax.com> (raw)

Ugh, check out main.c.  dashell, dashcee, give me a break.  What's wrong
with isloginsh, inputisstr, and so on?

So that I'm doing something productive, here are two unrelated patches
to rc 1.1 beta.  The first gives root the prompt ";; ", which would
be better than the traditional '#' for snarfing with a mouse.  The second
runs /usr/lib/sysmain if -l is true, which if I remember right, is TD's
name for the system profile file.

Arnold
--------------------------------------
*** main.c.orig	Wed Jul  3 13:33:55 1991
--- main.c	Wed Jul  3 13:34:26 1991
***************
*** 68,74 ****
  	inithandler();
  	inithash();
  	initparse();
! 	assigndefault("prompt", "; ", "", REALLYNULL);
  	assigndefault("path", ".", "/bin", "/usr/bin", "/usr/ucb", REALLYNULL);
  	assigndefault("ifs", " ", "\t", "\n", REALLYNULL);
  	assigndefault("pid", sprint(pid, "%d", rc_pid = getpid()), REALLYNULL);
--- 68,77 ----
  	inithandler();
  	inithash();
  	initparse();
! 	if (geteuid() == 0)
! 		assigndefault("prompt", ";; ", "", REALLYNULL);
! 	else
! 		assigndefault("prompt", "; ", "", REALLYNULL);
  	assigndefault("path", ".", "/bin", "/usr/bin", "/usr/ucb", REALLYNULL);
  	assigndefault("ifs", " ", "\t", "\n", REALLYNULL);
  	assigndefault("pid", sprint(pid, "%d", rc_pid = getpid()), REALLYNULL);
*** input.c.orig	Wed Jul  3 13:37:34 1991
--- input.c	Wed Jul  3 13:39:14 1991
***************
*** 250,257 ****
  		if (dashell) {
  			char *fname[3];
  
- 			fname[1] = concat(varlookup("home"),word("/.rcrc",NULL))->w;
  			fname[2] = NULL;
  			rcrc = TRUE;
  			dashell = FALSE;
  			b_dot(fname);
--- 250,262 ----
  		if (dashell) {
  			char *fname[3];
  
  			fname[2] = NULL;
+ 			fname[1] = "/usr/lib/sysmain";
+ 			rcrc = TRUE;
+ 			dashell = FALSE;
+ 			b_dot(fname);
+ 
+ 			fname[1] = concat(varlookup("home"),word("/.rcrc",NULL))->w;
  			rcrc = TRUE;
  			dashell = FALSE;
  			b_dot(fname);


             reply	other threads:[~1991-07-03 17:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-07-03 17:54 Arnold Robbins [this message]
1991-07-03 18:46 Arnold Robbins

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=9107031754.AA05851@audfax.audiofax.com \
    --to=arnold@audiofax.com \
    --cc=rc@archone.tamu.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).