Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Fri, 21 Sep 2001 13:20:11 -0400 From: Christopher Faylor To: Niklaus Giger Cc: cygwin AT cygwin DOT com Subject: Re: Small patch for expect under cygwin Message-ID: <20010921132011.A32224@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: Niklaus Giger , cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.21i On Fri, Sep 21, 2001 at 02:09:58PM +0200, Niklaus Giger wrote: >Thank you very much for all your effort in making cygwin such a good >environment under WindowsNT. Whithout it I would be helpless. > >I tried to use expect and fell into one of the pitholes. My CYGWIN >environment variable did not contain 'tty'. Could you provide a reference for the email where I suggested this? Many people inside Red Hat use expect without setting CYGWIN=tty so I don't remember this limitation. Btw, I have redirected this email to the cygwin mailing list. cgf >Searching on google found the answer Christopher Faylor from March of this year. > >It would have helped to have this small snippet of code being inserted e.g. in exp_main.exp.c at line 25 or so. >Is this a useful patch you could commit? > >#ifdef __CYGWIN32__ > if (strstr(getenv("CYGWIN"), "tty") == 0) > { > fprintf(stderr, > "Without tty in env variable CYGWIN=(%s) expect doesn't work properly.\n", > getenv("CYGWIN")); > fprintf(stderr, > "Set CYGWIN in autoexec.bat (Win9x) or \nvia Control Panel->System->Environment Variables (NT)\n", > getenv("CYGWIN")); > } >#endif -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/