Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!bellcore!tness7!tness1!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.unix.wizards Subject: Re: Line Buffered output Message-ID: <1717@ficc.uu.net> Date: 5 Oct 88 13:50:23 GMT References: <411@marob.MASA.COM> <178@arnold.UUCP> <3442@crash.cts.com> <26327@ucbvax.BERKELEY.EDU> Organization: SCADA Lines: 19 In article <26327@ucbvax.BERKELEY.EDU>, edward@ucbarpa.Berkeley.EDU (Edward Wang) writes: > In article <1686@ficc.uu.net> peter@ficc.uu.net (Peter da Silva) writes: > >[about flushing stdout when reading stdin] > >But it's *Berkeley* that had the smart stdio in the first place! I know > >that I ran into this on 2.something at Berkeley in 1980 and thought it > >was way-cool. When and why was it removed, or did it just not get migrated > >to 4BSD? > That was in Berkeley Pascal. No, it was in 'C', on at least one version of 2.x BSD. I know because I got burned depending on it when I ported 'C' programs that didn't do an fflush() after a prompt. I never used Berkeley Pascal on version 7 (though I did use it on V6 until Ken Arnold convinced me 'C' was cooler. I do seem to remember that you always had to fflush(stdout) using the -lS libraries under V6, but that I won't swear to). -- Peter da Silva `-_-' Ferranti International Controls Corporation. "Have you hugged U your wolf today?" peter@ficc.uu.net