From: cgf AT cygnus DOT com (Christopher Faylor) Subject: Re: B20 patch [was Re: Error in dup???] 14 Nov 1998 09:17:03 -0800 Message-ID: <19981114115207.A23262.cygnus.cygwin32.developers@cygnus.com> References: <19981114041054 DOT 582 DOT rocketmail AT send1b DOT yahoomail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Corinna Vinschen , cygwin32-developers AT cygnus DOT com On Sat, Nov 14, 1998 at 05:09:04PM +0100, Corinna Vinschen wrote: >Hello, > >I have found the error, which leads to the incorrect dup() handling >in tcsh. The member variable hinfo::first_fd_for_open is set to 3 >in the constructor of hinfo, which give the incorrect later results. >Initializing to 0 let it work as defined in the standards. That's not the error. The = 3 is there for a reason. It's not just a coincidence that this starts out at 3. cgf