delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/21/13:20:09

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <cygwin AT cygwin DOT com>
To: Niklaus Giger <n DOT giger AT netstal DOT com>
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 <n DOT giger AT netstal DOT com>, cygwin AT cygwin DOT com
References: <sbab4a47 DOT 042 AT netstal DOT com>
Mime-Version: 1.0
In-Reply-To: <sbab4a47.042@netstal.com>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019