Bug fix for 4.2BSD sdb
Steve Scalpone
rascal at verdix.UUCP
Wed Jan 25 14:47:14 AEST 1984
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
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list