This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Control-D not closing unit 5 in list-directed input


Hi

Yes, it is exactly the same behaviour. I just checked and indeed hitting ^D twice works.

-John


Hi John,

I don't know how that came to be, but I see a different behaviour than others with a compiler dated 20071231 on Intel/MacOS 10.4: I need to press ^D twice to get past the read statement. My output looks thus like that:

[before I do anything] $ ./a.out Enter number1?

[after I hit ^D] $ ./a.out Enter number1? ^D

[after I hit ^D again] $ ./a.out Enter number1? ios= -1 999 Enter number2?


Can you check if, in your case also, hitting ^D twice works? I suspect the problem has been fixed between 20071231 and now...



FX



PS: $ gfortran -v
Using built-in specs.
Target: i386-apple-darwin8.10.1
Configured with: /tmp/gfortran-20071231/ibin/../gcc/configure -- prefix=/usr/local/gfortran --enable-languages=c,fortran --with-gmp=/ tmp/gfortran-20071231/gfortran_libs --enable-bootstrap
Thread model: posix
gcc version 4.3.0 20071231 (experimental) [trunk revision 131236] (GCC)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]