bug in script

Joseph S. D. Yao jsdy at hadron.UUCP
Wed Feb 20 16:11:31 AEST 1985


> 	script "buffers" lines from application programs and does
> 	not print them at the proper time. Sometimes input must be
> 	accepted before output is printed.

Actually, this is a general problem, not limited to 2bsd.  Solve by
flushing output after print/printf, or by declaring output unbuffered
to begin with.  In C, the latter is:
	setbuf(stdout, (FILE *)NULL);
I don't know what the Furtrann for that would be.

Joe Yao		hadron!jsdy at seismo.{ARPA,UUCP}



More information about the Comp.bugs.2bsd mailing list