rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* possible bug in rc 1.4
@ 1993-12-02 10:56 malte
  0 siblings, 0 replies; only message in thread
From: malte @ 1993-12-02 10:56 UTC (permalink / raw)
  To: rc

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:

	fn sigint sighup { echo something >[1=2]; exit 1 }

	; script
	[ run run run ]

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-12-02 10:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1993-12-02 10:56 possible bug in rc 1.4 malte

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).