Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site minn-ua.UUCP Path: utzoo!linus!philabs!cmcl2!floyd!clyde!ihnp4!stolaf!umn-cs!minn-ua!abh From: abh@minn-ua.UUCP (Andy Hastings) Newsgroups: net.news.b Subject: CR does not work at [qfr] prompt in 2.10 news on SUN Message-ID: <553@minn-ua.UUCP> Date: Sun, 16-Oct-83 03:23:28 EDT Article-I.D.: minn-ua.553 Posted: Sun Oct 16 03:23:28 1983 Date-Received: Mon, 17-Oct-83 23:49:34 EDT Organization: Univ. of Minn. Computer Center, Minneapolis Lines: 33 This is the second posting - I suspect the first posting got lost. Sorry if you've seen this already. Readr() expects command() to return a TRUE or FALSE value indicating whether readr() is to break out of a for loop or not. Command() returns an undefined value if only a carriage return is entered. On our SUN running 4.2BSD, this undefined value happens to be 0 (FALSE). Here is the relevant portion of a diff -c. Don't expect the line numbers to be correct - the 2.10 news source was heavily modified before we got it. *** 208,214 /* The user hit return. Default is 'y' unless rfq, then it's 'q'. */ case '\0': if (!bptr[-1] && rfq) ! return; readmode = NEXT; --- 210,216 ----- /* The user hit return. Default is 'y' unless rfq, then it's 'q'. */ case '\0': if (!bptr[-1] && rfq) ! return TRUE; readmode = NEXT; ***************** Andy Hastings University Computer Center University of Minnesota ihnp4!umn-cs!minn-ua!abh