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: "Andrew Pinski" <pinskia at gmail dot com>
- To: "John Nabelek" <nabelek at coas dot oregonstate dot edu>
- Cc: "Jerry DeLisle" <jvdelisle at verizon dot net>, fortran at gcc dot gnu dot org
- Date: Fri, 25 Jan 2008 14:29:04 -0800
- Subject: Re: Control-D not closing unit 5 in list-directed input
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=+tsMLD8fEx5fEgEeLpnkfFyHWfFEeECkKymF6yfp4bY=; b=Kpxmt4mttUOITsyzK3r2673D+mx0QBZwpl5hytHSxG9zNP2T1CkjDtj99grNrASO0XknFNCZgIrgwmRiO+C2LRDb4vDooRoirR/qPP2VtHQbz2R0WVVOX6NBwop75AtTkq7Yfkl2BiscHeQOwhrpThK9SCSp0TZcCNrBGXKLGag=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SZsCU/F/OprDG7iUrABnO0kfNng+tIuvMBLlZJ+EGB0WWd5+Wh2VOlc9Wo4uR4oUer0XfppjPYowsgie0reyAII/wBG5cAIchyY0eaeAESPboEectBlpCjXNl/ztjOBD5+L91Ylz1q1GSlJ52Hon7zrBk7CZfu+z/LUiAWoaMq8=
- References: <338872C4-DBC5-47E5-9902-BE84EB9169A9@coas.oregonstate.edu> <479A592A.5080502@verizon.net> <3C784D8D-23BE-4330-A5F8-CE7BCB44CD02@coas.oregonstate.edu>
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