rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Boyd Roberts <boyd@prl.dec.com>
To: rc@archone.tamu.edu
Subject: Re: rc + Xwindows
Date: Tue, 27 Aug 1991 05:06:49 -0500	[thread overview]
Message-ID: <9108271206.19431.out.babur@prl.dec.com> (raw)
In-Reply-To: <91Aug26.222252cdt.22533@archone.tamu.edu>

    Byron>

    What do I do? I run rc -l in all my windows. Do I notice the slowdown?
    No way! Let's see....

I have a 181 line system .rcrc (it's pretty hideous) and a 66 line personal
one and both get sourced in every xterm I invoke:

    prl313 ; sed 2q .rcrc
    . /proj/ultrix/lib/system.rcrc
    
    prl313 ; wc /proj/ultrix/lib/system.rcrc
         181     468    3674 /proj/ultrix/lib/system.rcrc
    prl313 ; wc .rcrc
          66     143    1051 .rcrc

I have about 40 windows open now, on about 6 machines, but most of them are
on my own machine.  Do I see a slowdown?

    prl313 ; time rc -l /dev/null
            0.9 real         0.0 user         0.4 sys

The bulk of the time I'm waiting is for X to _give me that window_!

On the question of a root prompt, it's just:

    if (test -w /)
    {
    	pc='#'
    } else {
    	pc=';'
    }
    
    prompt=($MACHINE' '^$pc' ' ' ')

End of story.  It's dead cheap.

So cheap, I reckon it's another argument for rcmain.


      parent reply	other threads:[~1991-08-27 10:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-08-27  3:22 Byron Rakitzis
1991-08-27  3:30 ` Chris Siebenmann
1991-08-27 10:06 ` Boyd Roberts [this message]

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=9108271206.19431.out.babur@prl.dec.com \
    --to=boyd@prl.dec.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).