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


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


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