abh@minn-ua.UUCP (Andy Hastings) (10/16/83)
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