Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uwmcsd1!leah!bingvaxu!marge.math.binghamton.edu!sullivan From: sullivan@marge.math.binghamton.edu (fred sullivan) Newsgroups: comp.lang.modula2 Subject: JPI Modula-2 Summary: Does it handle redirection properly? Message-ID: <1380@bingvaxu.cc.binghamton.edu> Date: 27 Aug 88 17:08:25 GMT Sender: news@bingvaxu.cc.binghamton.edu Reply-To: sullivan@marge.math.binghamton.edu (fred sullivan) Organization: Dept. of Mathematical Sciences, SUNY at Binghamton Lines: 22 Can anyone tell me if JPI Modula-2 handles I/O redirection properly? Logitech Modula-2 cannot detect end-of-file on console input, and the system HANGS if end-of-file is reached on standard input which has been redirected to a disk file. (I am aware of the technical reasons for this, and I know how to write a module to fix it. I am also aware that using redirection provided by the operating system may not be quite fit the usual (I hesitate to say standard) way of doing things, but so much the worse for the usual way.) I was also appalled to discover that with Logitech Modula-2, standard input and output are unbuffered, even if redirected to a disk file. Try running the obvious program to copy input to output on a 300K file (but not if you're in a hurry). This problems, together with the blazing speed of the Logitech compiler have kept me writing in Turbo-C, although I really prefer Modula-2. I'm hoping that JPI Modula-2 is just what I want. Fred Sullivan SUNY at Binghamton Dept. Math. Sciences Binghamton, NY 13903 sullivan@marge.math.binghamton.edu First you make a roux!