Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!genrad!wjh12!n44a!rna!dan From: dan@rna.UUCP Newsgroups: net.bugs.4bsd,net.unix-wizards Subject: A few small bugs in 4.2bsd learn... Message-ID: <215@rna.UUCP> Date: Sat, 18-Feb-84 18:46:34 EST Article-I.D.: rna.215 Posted: Sat Feb 18 18:46:34 1984 Date-Received: Sun, 19-Feb-84 05:59:00 EST Lines: 31 Subject: Few bugs with learn Index: /usr/src/usr.bin/learn/copy.c 4.2BSD Description: 1) Typing EOT to learn causes learn to loop on error from stdin. 2) learn scripts files, eqn, vi cannot startup at all. Repeat-By: (above) Fix: 1) In the file, copy.c, add clearerr(stdin)... *** copy.c.org Tue Apr 26 03:04:22 1983 --- copy.c Sat Feb 18 18:11:11 1984 *************** *** 34,35 if (fin == stdin) { fprintf(stderr, "Type \"bye\" if you want to leave learn.\n"); --- 34,36 ----- if (fin == stdin) { + clearerr(stdin); fprintf(stderr, "Type \"bye\" if you want to leave learn.\n"); 2) chmod 755 /usr/lib/learn/files/Init /usr/lib/learn/eqn/Init \ /usr/lib/learn/vi/Init Cheers, Dan Ts'o ...cmcl2!rna!dan