This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Control-D not closing unit 5 in list-directed input
- From: John Nabelek <nabelek at coas dot oregonstate dot edu>
- To: fxcoudert at gmail dot com
- Cc: fortran at gcc dot gnu dot org
- Date: Sat, 26 Jan 2008 02:20:18 -0800
- Subject: 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)