[net.bugs.4bsd] Bug fix for 4.2BSD sdb

rascal@verdix.UUCP (Steve Scalpone) (01/25/84)

In sdb, like in ex, you can type a control-d and get another bit
of text displayed.  In sdb, this is implemented by catching EOF.
Naturally, sdb doesn't ever "clearerr" before reading again, so
EOF is returned again and again.  This is a problem.

Fix it in "sub.c" right after line 19.  Add a call to "clearerr(f)".

    19			if ((i = getc(f)) == EOF) {
    20				*p++ = '\004';
    21				*p = '\n';
    22			}

No source?  Try changing your EOF character or escaping the "^D".

	Steve Scalpone
	Verdix Corporation
	ogcvax!verdix!rascal
	sequent!verdix!rascal