Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: Ronald Landheer-Cieslak Subject: Re: Facing problem with bash Date: Thu, 22 Jul 2004 13:20:07 -0400 Lines: 53 Message-ID: References: <7837FAA857FF274AAE32F4AFA03272920124B2 AT mshyd2 DOT hyd DOT deshaw DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: dslcom1-156.express.oricom.ca User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707 In-Reply-To: <7837FAA857FF274AAE32F4AFA03272920124B2@mshyd2.hyd.deshaw.com> X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Atukuri, Vasudeva_Kumar wrote: > OS: Windows 2000 > Cygwin bash version "2.05b.0(9)" > > My application is a combination of Fortran and C. > In Fortran Stdout's number is 6. > > When I ran the application from the Cygwin console it is giving the > problem and exited. > where there is a write statement to the stdout. > ************************************************* > Input/Output Error 179: Bad file descriptor > In Procedure: openwt > At Line: 562 > Statement: Formatted WRITE > Unit: 6 > Connected To: Stdin > End of diagnostics > ************************************************* > And then I typed the command "bash" (gone into one more level deeper), > then it worked. > And tried again one more step deeper ($SHLVL = 3) it gave the same > problem. > > I kept on going deeper and deeper and my observation is... > For all odd SHLVL values it is failing(giving the above error message) > For all even SHLVL values it is succeeding. > > The strange thing is when I ran from the remote shell. My "rsh" shell is > set to use "/usr/bin/bash" > I ran the application on remote shell (using rsh) then the application > is running properly. > In all levels of SHLVL, it is running properly. > > Can you please suggest us a solution to solve this problem? Ehm... Not knowing squat about Fortran, I have not the slightest idea what you're talking about, nor what your problem is.. I'm tempted to say http://www.catb.org/~esr/faqs/smart-questions.html or perhaps http://cygwin.com/problems.html Could you perhaps post a minimalist test case that shows the problem (i.e. a Fortran source file, a Makefile and whatnot so I can simply type `make' and have the problem occur?) As I said, I don't know *anything* about Fortran, but if your problem is really with Bash, I'll be happy to help.. rlc Cygwin Bash maintainer (among other things). -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/