From rc-owner Thu Jan  5 15:18:51 1995
Received: from localhost by hawkwind.utcs.utoronto.ca with SMTP id <24163>; Thu
, 5 Jan 1995 15:15:31 -0500
To:     rc
Subject: The rc mailing list is back (for good) (I hope)
Date:   Thu, 5 Jan 1995 15:14:57 -0500
From:   Chris Siebenmann <cks>
Message-Id: <95Jan5.151531est.24163@hawkwind.utcs.utoronto.ca>

 My apologies for the disruption; if you sent anything and it bounced
(or didn't come back), you'll have to resend it (this includes address
changes).

 The spam (and the aftermath) have been purged from the archives. I've
taken this opportunity to put the latest versions on the ftp site,
ftp.sys.utoronto.ca. I've also rolled over the archives as well (into a
somewhat misnamed 'rc-list.1994.gz' file); in the future, I'll try to do
this yearly.

        - cks

From rc-owner Mon Jan  9 23:09:43 1995
Received: from galapagos.cse.psu.edu ([130.203.2.12]) by hawkwind.utcs.utoronto
.ca with SMTP id <24158>; Mon, 9 Jan 1995 23:07:07 -0500
Received: from localhost by galapagos.cse.psu.edu with SMTP id <12686>; Mon, 9
Jan 1995 23:06:44 -0500
To:     rc@hawkwind.utcs.toronto.edu
Subject: rc1.5 patch
Date:   Mon, 9 Jan 1995 23:06:34 -0500
From:   Scott Schwartz <schwartz@galapagos.cse.psu.edu>
Message-Id: <95Jan9.230644est.12686@galapagos.cse.psu.edu>

A while back Byron asked if I had the patch handy for a bug in the
reader that someone noticed.  Sorry for the delay, here's the diff.
This diff also works around a bug in ObjectCenter's understanding of
declarations.  I know of a few other bugs, in the print library, but I
think they are benign.  [The fixes for those are reflected in the
version of the print code that I sent to comp.sources.unix a while
back, if anyone wants to integrate them.  (Yeah, I ought to do it.)]

diff -rc ./footobar.c /home/roke/src/rc1.5/footobar.c
*** ./footobar.c        Sun Mar  6 22:32:55 1994
--- /home/roke/src/rc1.5/footobar.c     Tue Mar 29 23:32:56 1994
***************
*** 9,15 ****

  #ifdef PROTECT_ENV
  static bool Fconv(Format *f, int ignore) {
!       unsigned const char *s = va_arg(f->args, unsigned const char *);
        int c;

        while ((c = *s++) != '\0')
--- 9,15 ----

  #ifdef PROTECT_ENV
  static bool Fconv(Format *f, int ignore) {
!       const unsigned char *s = va_arg(f->args, const unsigned char *);
        int c;

        while ((c = *s++) != '\0')
diff -rc ./input.c /home/roke/src/rc1.5/input.c
*** ./input.c   Sun Mar  6 22:33:03 1994
--- /home/roke/src/rc1.5/input.c        Tue Apr  5 16:45:46 1994
***************
*** 140,145 ****
--- 140,147 ----
                                long /*ssize_t*/ r = rc_read(istack->fd, inbuf
+ 2, BUFSIZE);
                                sigchk();
                                if (r < 0) {
+                                       if (errno == EINTR) /*retry interrupted
 read*/
+                                               continue;
                                        uerror("read");
                                        rc_exit(1);
                                }
diff -rc ./print.c /home/roke/src/rc1.5/print.c
*** ./print.c   Sun Mar  6 22:33:10 1994
--- /home/roke/src/rc1.5/print.c        Tue Mar 29 23:33:24 1994
***************
*** 240,246 ****
   */

  extern int printfmt(Format *format, const char *fmt) {
!       unsigned const char *s = (unsigned const char *) fmt;

        if (fmttab[0] == NULL)
                inittab();
--- 240,246 ----
   */

  extern int printfmt(Format *format, const char *fmt) {
!       const unsigned char *s = (const unsigned char *) fmt;

        if (fmttab[0] == NULL)
                inittab();

From rc-owner Thu Mar  2 09:18:04 1995
Received: from netcom4.netcom.com ([192.100.81.107]) by hawkwind.utcs.utoronto.
ca with SMTP id <24034>; Thu, 2 Mar 1995 09:17:32 -0500
Received: by netcom4.netcom.com (8.6.9/Netcom)
        id OAA19569; Thu, 2 Mar 1995 14:13:21 GMT
Date:   Thu, 2 Mar 1995 09:13:21 -0500
From:   haahr@netcom.com (Paul Haahr)
Message-Id: <199503021413.OAA19569@netcom4.netcom.com>
To:     rc@hawkwind.utcs.toronto.edu
Subject: from 9fans:  Bug in rc

> From: Amos Shapir <amos@CS.HUJI.AC.IL>
> To: 9fans@cse.psu.edu
> Subject: Bug in rc
> Date: Wed, 1 Mar 1995 08:16:34 -0500
> Message-Id: <199503011316.AA06775@hazard.cs.huji.ac.il>
>
> Try the following:
>
> #!/bin/rc
> for (iter in 1 2 3 4 5) {
>       echo $iter
>       sleep 5 &
>       wait
> }
>
> Somehow, the "wait" botches the "for"'s argument list.

When I first read this, I was a little surprised to see that such a bug
existed in so reliable a piece of code as rc.  So surprised that I tried
it and couldn't reproduce the problem.  I was in the middle of replying
when I saw that my reply was going to 9fans and not the rc list.

Kudos to Byron for building a more robust clone than the original.


From rc-owner Thu Mar  2 10:49:47 1995
Received: from dealer.cards.com ([192.133.70.2]) by hawkwind.utcs.utoronto.ca w
ith SMTP id <24034>; Thu, 2 Mar 1995 10:49:06 -0500
Received: from monte (monte.cards.com) by dealer.cards.com (4.1/mls/3.2)
        id AA13341; Thu, 2 Mar 95 10:49:01 EST
Message-Id: <9503021549.AA13341@dealer.cards.com>
Received: by monte (4.1/mls/3.2)
        id AA00321; Thu, 2 Mar 95 10:49:00 EST
Date:   Thu, 2 Mar 1995 10:49:00 -0500
From:   carvell@cards.com
To:     rc@hawkwind.utcs.toronto.edu
Subject: Need help with rc on Linux

Hello rc users,

I'm having a strange rc problem which I believe is related to my
"port" of rc to Linux.  Briefly, I have a 486 box running Linux 1.1.54
with the rc-1.5betadev-1 distribution of rc.  I compiled rc using the
notes from Jeremy Fitzhardinge from the rc mail archives.  I think I
did get a few compiler warnings, but my rc has always seemed stable
except for this.

The problem is in an rc shell script for a simple WWW chat system. It
is executed from NCSA httpd 1.3. Any time I do something along the
lines of "a=`{some_command}" the script freezes.  It works fine from
the command line, and in a shell script executed from the command
line.  If I pipe some_command to a temp file, then say "a=`{cat
temp}", this often works (but sometimes still freezes).

I'm assuming the problem is in my port to Linux since I've used rc on
my Sun4 at work for two years with no problems whatsoever, and the
same shell script works fine under httpd on the Sun.  When compiling
for Linux I admit

Any information about this problem would be greatly appreciated.  In
particular if you have a solid Linux version of rc, or diffs for one,
or you've done any WWW stuff using rc and Linux, I'd love to hear from
you.

Thanks in advance folks.
Gary

--
Gary Carvell
Galaxy Global Corporation
Mail: carvell@cards.com   Voice: 304-367-8249   Fax: 304-367-8223

From rc-owner Thu May  4 09:37:14 1995
Received: from archone.tamu.edu ([128.194.53.42]) by hawkwind.utcs.utoronto.ca
with SMTP id <24108>; Thu, 4 May 1995 09:31:56 -0400
Received: from chops.icp.net ([199.0.55.71]) by archone.tamu.edu with SMTP id <
25817>; Thu, 4 May 1995 08:34:20 -0500
Received: by chops.icp.net with SMTP id <20652>; Thu, 4 May 1995 09:31:27 -0400
From:   Sean Doran <smd@sprint.net>
Reply-To: smd@sprint.net
To:     rc@archone.tamu.edu
Subject: rc-1.4 leaks under NetBSD 1.0 on SPARCStation 2
Date:   Thu, 4 May 1995 09:31:17 -0400
Sender: smd@chops.icp.net
Message-Id: <95May4.093127-0400_edt.20652+4@chops.icp.net>



Well, I've tried beating it up all over the place,
and am about to see if it might be a complier problem
(NetBSD 1.0 uses gcc version 2.4.5).

Has anyone else used rc on such a setup, and
have you noticed this memory leak also?

It gets quite serious; I only discovered it one day
after rc had eaten up about 40Mbytes of memory... :(

This is obviously operating-system dependent, as the same
rc-1.4 source tree works just fine under StunOS on the same box.

Any help *enormously* appreciated!

        Sean.
- --

Script started on Thu May  4 09:22:32 1995
$ /bin/rc
; ps l$pid
  UID   PID  PPID CPU PRI NI   VSZ  RSS WCHAN  STAT TT       TIME COMMAND
32767  4950  4949  12  10  0   152  484 wait   S+   pb    0:00.26 /bin/rc
; ps l$pid
  UID   PID  PPID CPU PRI NI   VSZ  RSS WCHAN  STAT TT       TIME COMMAND
32767  4950  4949   7  10  0   152  512 wait   S+   pb    0:00.28 /bin/rc
; ps l$pid
  UID   PID  PPID CPU PRI NI   VSZ  RSS WCHAN  STAT TT       TIME COMMAND
32767  4950  4949   5  29  0   152  528 -      R+   pb    0:00.30 /bin/rc
; echo hi there
hi there
; ps l$pid
  UID   PID  PPID CPU PRI NI   VSZ  RSS WCHAN  STAT TT       TIME COMMAND
32767  4950  4949   2  10  0   152  568 wait   S+   pb    0:00.32 /bin/rc
; env
HOME=/u/smd
LOGNAME=smd-save
PATH=/usr/bin:/bin
SHELL=/bin/sh
TERM=xterm
USER=smd-save
home=/u/smd
path=/usr/bin/bin
prompt=;
; ps l$pid
  UID   PID  PPID CPU PRI NI   VSZ  RSS WCHAN  STAT TT       TIME COMMAND
32767  4950  4949   1  10  0   152  620 wait   S+   pb    0:00.35 /bin/rc
; whatis
USER=smd-save
path=(/usr/bin /bin)
ifs=(' ' '      ' '
')
home=/u/smd
LOGNAME=smd-save
prompt=('; ' '')
PATH=/usr/bin:/bin
pid=4950
TERM=xterm
SHELL=/bin/sh
HOME=/u/smd
;
Script done on Thu May  4 09:23:54 1995

From rc-owner Mon May  8 16:15:52 1995
Received: from cooper.edu ([199.98.16.4]) by hawkwind.utcs.utoronto.ca with SMT
P id <24116>; Mon, 8 May 1995 16:11:48 -0400
From:   micro@cooper.edu
Date:   Mon, 8 May 1995 16:13:55 -0400
To:     rc@hawkwind.utcs.toronto.edu
Subject: HTMLized Mail Archive
Content-Length: 344
Message-Id: <95May8.161148edt.24116@hawkwind.utcs.utoronto.ca>

Mon May  8 15:56:20 EDT 1995

Due to a need for disk space, and a lack of use of
the rc mail archives,  the rc HTMLized mail archive
will no longer be available at :

        http://cooper.edu:9000/rc/


The online version will still be available via ftp at:

        ftp.sys.utoronto.edu

in directory:

        /pub/rc/

Sorry for any inconvenience.

R. Primus.