gfortran-4 problem: stdout is lost when redirected
Sun May 10 12:19:00 GMT 2009
I have a problem with cygwin gfortran 4.3.2 20080827 on cygwin-1.7.
Text written to stdout (unit 6) is lost when redirected. The problem
goes away if I add a "close(6)" statement, so the buffer may not be
I don't see the problem with vanilla gcc-4.4.0 or gcc-trunk, compiled
from source. These versions still use static libraries, so I am unsure
if the problem has been fixed, or if it is due to the patches in the
cygwin version of 4.3.2.
Also, the problem doesn't occur with cygwin-1.5.
$ cat j.f90
$ gfortran-4 -o j.exe j.f90
$ ./j > j.txt
$ cat j.txt
$ cat j-close.f90
$ gfortran-4 -o j-close.exe j-close.f90
$ ./j-close > j-close.txt
$ cat j-close.txt
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin