rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: haahr@mv.us.adobe.com (Paul Haahr)
To: alan@oldp.astro.wisc.edu
Cc: rc@hawkwind.utcs.toronto.edu
Subject: Re: Differences between Duff's rc and Byron's
Date: Wed, 26 May 1993 13:06:40 -0400	[thread overview]
Message-ID: <9305261706.AA29590@astro.mv.us.adobe.com> (raw)

> Actually, reading the Plan9 man pages was somewhat depressing:  two of
> the things I regard as unnecessary in Byron's rc ($^foo and newpgrp)
> have made it after a fashion in to Duff's implementation.

$^ is most definitely necessary.  ok, you can simulate the operation with:

	fn flatten {
		var = $1
		shift
		if (~$#* 0) {
			$var = ''
			return
		}
		$var = $1
		shift
		for (i = $*) {
			$var = $$var ^ ' ' ^ $i
		}
	}

and use

	flatten x $foo

for

	x = $^foo

but the operation itself is fundamental.  the concatenation semantics just
about require it.  (eval, for example, does flattening internally.)

newpgrp on the other hand is a hack.  it's there because otherwise rc
would be much less usable on some (admittedly broken) systems.

paul


             reply	other threads:[~1993-05-26 19:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-05-26 17:06 Paul Haahr [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-05-27  6:48 Paul Haahr
1993-05-27  5:02 Alan Watson
1993-05-26 17:58 Paul Haahr
1993-05-26 20:31 ` Chris Siebenmann
1993-05-26 20:32 ` Chris Siebenmann
1993-05-26 17:38 Tom Culliton x2278
1993-05-26 16:53 Paul Haahr
1993-05-26 17:55 ` Chris Siebenmann
1993-05-29 12:34   ` John Mackin
1993-05-25 23:32 Alan Watson
1993-05-25 22:42 Tom Culliton x2278

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=9305261706.AA29590@astro.mv.us.adobe.com \
    --to=haahr@mv.us.adobe.com \
    --cc=alan@oldp.astro.wisc.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).