X-Authentication-Warning: ieva01.lanet.lv: pavenis owned process doing -bs Date: Sat, 9 Jan 1999 12:08:15 +0200 (WET) From: Andris Pavenis To: Robert Hoehne cc: djgpp AT delorie DOT com Subject: Re: RHIDE exits program without asking for input In-Reply-To: <369729F8.FB41B229@gmx.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Sat, 9 Jan 1999, Robert Hoehne wrote: > Eli Zaretskii wrote : > > > > Let me guess: if you run your program from the DOS prompt, it works > > correctly, no matter how many times do you invoke it. Right? > > No, at least I get under DOS the same behaviour. I tried in a DOS-box > under W95 and then I rebooted the plain DOS mode and got the same. > > But if I do a > > dir > > betwwen the runs of the test program, it works. > > BTW: I tried also the example from libc.inf (fgetc()). > It's known behaviour in MS-DOS (including DOS session under Win95) . Any output to stdout or stderr clears EOF in stdin. This does not appear in command.com as it output command prompt. Unfortunatelly we have this problem under bash, Norton Commander or FAR and perhaps other similar programs. Andris