Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site verdix.UUCP Path: utzoo!linus!philabs!seismo!harpo!ihnp4!alberta!ubc-vision!uw-beaver!tektronix!ogcvax!verdix!rascal From: rascal@verdix.UUCP (Steve Scalpone) Newsgroups: net.bugs.4bsd Subject: Bug fix for 4.2BSD sdb Message-ID: <176@verdix.UUCP> Date: Tue, 24-Jan-84 23:47:14 EST Article-I.D.: verdix.176 Posted: Tue Jan 24 23:47:14 1984 Date-Received: Sat, 28-Jan-84 02:41:09 EST Organization: Verdix Lines: 18 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