From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from techfac.TechFak.Uni-Bielefeld.DE ([129.70.132.100]) by hawkwind.utcs.toronto.edu with SMTP id <23989>; Thu, 2 Dec 1993 05:57:13 -0500 Received: from pharao.TechFak.Uni-Bielefeld.DE by techfac.TechFak.Uni-Bielefeld.DE id AA07583; Thu, 2 Dec 1993 11:56:33 +0100 Received: by pharao.techfak.uni-bielefeld.de (5.0/tp.29.0890) id AA09324; Thu, 2 Dec 93 11:56:32 +0100 Date: Thu, 2 Dec 1993 05:56:32 -0500 From: malte@TechFak.Uni-Bielefeld.DE Message-Id: <9312021056.AA09324@pharao.techfak.uni-bielefeld.de> To: rc@hawkwind.utcs.toronto.edu Subject: possible bug in rc 1.4 Hello fellow rc users, I'm afraid that I've found a bug in rc that I can easily reproduce on Sparcs running Solaris 2.[2] and RS6000 running AIX 3.2.5, but not on Sparcs running SunOS 4, DEC Alphas running OSF/1 1.3 and SGIs running IRIX 4.0.5. On all machines, gcc 2.5.3 was used to compile the shell. Consider running the following script: #!/vol/local/bin/rc fn sigint sighup { echo something >[1=2]; exit 1 } while(){} ; script [ run run run ] ^Csomething ; Now I add sighup to the list of caught signals, rerun the script and hit ^C again, the output is either "something" or rc panic: unexpected node in doredirs! or "something" followed by some blanks and newlines. and is not reproducible. Adding another signal consistently causes an rc panic. I believe that either r or r->r in doredirs gets corrupted but have no idea why. If I replace the invocation of echo with a call to another function echo'ing the message with redirection, everything is fine. Malte