rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* Re: early reaction(s) to rc
@ 1991-08-23 20:47 Arnold D. Robbins
  1991-08-24  0:15 ` John Mackin
  0 siblings, 1 reply; 4+ messages in thread
From: Arnold D. Robbins @ 1991-08-23 20:47 UTC (permalink / raw)
  To: Boyd Roberts, rc

> Duff told me:
> 
>     rcmain does the flags that affect initialization, to wit:
>           -p      `protected' -- don't read functions, set path=(. /bin)
>           -c      execute a command given on the command line
>           -i      `interactive' -- print prompts for commands
>           -l      `login shell' -- read $home/lib/profile before user's commands

I would love to know how this works.  -c is trivial:

	eval $*(2) ; exit

and so is -l, but -p and -i are harder --- is there some secret equivalent
of `set' in his rc?  In other words, how does the rc program tell the
shell itself what to do with the environment and whether or not to prompt?

Thanks,

Arnold


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1991-08-24 15:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1991-08-23 20:47 early reaction(s) to rc Arnold D. Robbins
1991-08-24  0:15 ` John Mackin
1991-08-24  3:48   ` John Mackin
1991-08-24 15:10     ` Severe egg on face John Mackin

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).