delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/03/13:31:44

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
Message-ID: <3A2A83C5.C908FFF3@tismer.com>
Date: Sun, 03 Dec 2000 19:32:53 +0200
From: Christian Tismer <tismer AT tismer DOT com>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Earnie Boyd <earnie_boyd AT yahoo DOT com>
CC: cygwin AT sources DOT redhat DOT com
Subject: Re: cygwin binmode problem, dll initialization time
References: <20001203164219 DOT 4117 DOT qmail AT web118 DOT yahoomail DOT com>

Earnie,

sorry, this is not true.
I have an open CYGWIN window, and CYGWIN is *not* set.
Then I start a little wrapper which sets CYGWIN and
fires up the Cygwin ssh process, on demand of WinCVS.
This *does* work, but only because my wrapper is
not compiled with gcc, but MS C++. The new incarnation
of the cygwin dll is then evaluating the params correctly.

ciao - chris

Earnie Boyd wrote:
> 
> The CYGWIN variable *must* be set *before*any* Cygwin process starts.
> 
> Cheers,
> Earnie
> --- Christian Tismer <tismer AT tismer DOT com> wrote:
> > Hi cygwin people,
> >
> > I enocuntered a little problem when trying to use OpenSSH
> > together with WinCVS:
> > It only works when the environment variable CYGWIN is set to
> > 'binary'. So far so good, but:
> >
> > I tried to write a wrapper around ssh, which changes a few
> > settings, adds some defaults and so on. In order to avoid to
> > set the CYGWIN valriable globally for my machine, I tried
> > to pass this variable via _putenv to the environment, before
> > _exec'ing to the real ssh.
> >
> > This does not work! The environment variable *is* passed
> > through to the called process, but that doesn't help.
> > I assume that it is the cygwion dll which must evaluate
> > the variable, and it doesn't do so when the calling process
> > has already linked to the cygwin dll.
> >
> > Question: Is that a bug or an intended feature?
> >
> > Here some proof of my statement:
> > Instead of calling gcc, I used MS VC++ to compile my little
> > launcher program. This has no dll linkage to the cygwin
> > dll, and in fact, initialization is ok, and the environment
> > variable's value is obeyed while ssh is running.
> >
> > ciao - chris
> >
> > --
> > Christian Tismer             :^)   <mailto:tismer AT tismer DOT com>
> > Mission Impossible 5oftware  :     Have a break! Take a ride on Python's
> > Kaunstr. 26                  :    *Starship* http://starship.python.net
> > 14163 Berlin                 :     PGP key -> http://wwwkeys.pgp.net
> > PGP Fingerprint       E182 71C7 1A9D 66E9 9D15  D3CC D4D7 93E2 1FAE F6DF
> >      where do you want to jump today?   http://www.stackless.com
> >
> > --
> > Want to unsubscribe from this list?
> > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
> >
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/

-- 
Christian Tismer             :^)   <mailto:tismer AT tismer DOT com>
Mission Impossible 5oftware  :     Have a break! Take a ride on Python's
Kaunstr. 26                  :    *Starship* http://starship.python.net
14163 Berlin                 :     PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint       E182 71C7 1A9D 66E9 9D15  D3CC D4D7 93E2 1FAE F6DF
     where do you want to jump today?   http://www.stackless.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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