[net.bugs.4bsd] addbib goes into infinite loop.

chris@hwcs.UUCP (Chris Miller) (11/05/84)

Index:	/usr/src/usr.bin/refer/addbib.c 4.2BSD

Description:
	After reading an abstract, "addbib" ignores further input
	and prints out an unending stream of prompts.
Repeat-By:
	Run "addbib /tmp/junk" and create a dummy reference with
	arbitrary keywords. Type the EOF character in response to
	the "Abstract: " prompt.
Fix:
	Test for EOF and clear the condition before issuing
	a "Continue? " prompt.
-- 
			Chris Miller
			Department of Computer Science
			Heriot-Watt University
			...!ukc!{edcaad,west44}!hwcs

david@ukma.UUCP (David Herron) (11/13/84)

I encountered the same bug and fixed it a different way.  I thought it
was silly to have it end on EOF, that the editor/binmail standard of
using a line only containing a '.' to be the better method.  So, our
addbib takes '.' to end an abstract.
David Herron