Control-D not closing unit 5 in list-directed input
Andrew Pinski
pinskia@gmail.com
Sat Jan 26 14:07:00 GMT 2008
On 1/25/08, John Nabelek <nabelek@coas.oregonstate.edu> wrote:
> Hi Jerry,
>
> here is a small test program which reads a number from a terminal. It
> works with g77. If Control-D is pressed, code accepts the default
> value of 999. In case of an error (e.g., if you enter a character),
> the number is read again. Subroutine bs5 restores unit 5 for input
> after it was closed.
Since it sounds like others cannot reproduce it, what Operating System
are you using?
Thanks,
Andrew Pinski
More information about the Fortran
mailing list