rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: haahr@mv.us.adobe.com (Paul Haahr)
To: culliton@srg.af.mil
Cc: rc@hawkwind.utcs.toronto.edu
Subject: Re:  Differences between Duff's rc and Byron's
Date: Wed, 26 May 1993 12:53:55 -0400	[thread overview]
Message-ID: <9305261653.AA27788@astro.mv.us.adobe.com> (raw)

if you look at the unix version (10th edition) of rc rather than
the plan 9 version, some of the differences drop away.  all of the
following are in the bell labs unix version of rc, either exactly
or almost identical to the versions in Byron's shell.

> - Command line switches
> 	-d      -d      no-op vs. debug enable SIGQUIT/SIGTERM
> 	-p      -p      no-op vs. disable function import
> - startup file $home/lib/profile vs. $home/.rcrc
> - environment handling (system dependent)
> - different signal handlers (system dependent)

other comments:

> - $" vs. $^
> 	This seems like an arbitrary difference.
Byron's $^ preceeded td's $".  if you look at older versions of the
bell labs rc man page, it's not there.

> - pattern matching, word vs. list
> 	This fixes something noted as a bug in the Plan 9 man page.
i don't know what you mean by this comment.  i don't think Byron's
~ operator is any different from td's.

> - additional variables: history, ...
> 	Plan 9 may use history and not just not mention it in the man
i think it does.  i know it was a later addition to rc.

> - . -i (???)
> 	Duff's paper mentions this but the man page doesn't.
it's just undocumented, but it's there.

of the rest of the differences noted, the only ones which were
not upward compatible were

> - builtin flag
> - if not vs. else
> - $status

and, of course,
> - rfork vs. newpgrp (System dependent)
which is not really a shell difference.  (and, of course, the v10
version doesn't have rfork.)

Tom-- thanks for doing this list.  it was very informative to see
just what the differences were.  i was actually surprised by how
few differences there really were.

paul


             reply	other threads:[~1993-05-26 16:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-05-26 16:53 Paul Haahr [this message]
1993-05-26 17:55 ` Chris Siebenmann
1993-05-29 12:34   ` John Mackin
  -- 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 17:06 Paul Haahr
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=9305261653.AA27788@astro.mv.us.adobe.com \
    --to=haahr@mv.us.adobe.com \
    --cc=culliton@srg.af.mil \
    --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).