Mail Archives: djgpp/1999/01/09/05:12:28
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
- Raw text -