delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/03/15:57:24

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, 3 Nov 2000 15:51:08 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT sources DOT redhat DOT com
Subject: Re: patch text mode problem with latest CVS source
Message-ID: <20001103155108.G17861@redhat.com>
Reply-To: cygwin AT sources DOT redhat DOT com
Mail-Followup-To: cygwin AT sources DOT redhat DOT com
References: <20001102151709 DOT A1024 AT dothill DOT com> <20001102152046 DOT B14935 AT redhat DOT com> <20001102154456 DOT B1024 AT dothill DOT com> <20001102171451 DOT A15737 AT redhat DOT com> <20001103090857 DOT A1038 AT dothill DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.6i
In-Reply-To: <20001103090857.A1038@dothill.com>; from Jason.Tishler@dothill.com on Fri, Nov 03, 2000 at 09:08:57AM -0500

On Fri, Nov 03, 2000 at 09:08:57AM -0500, Jason Tishler wrote:
>On Thu, Nov 02, 2000 at 05:14:51PM -0500, Christopher Faylor wrote:
>> It seems to be controlled by the value of your "TMP" (or possibly
>> "TEMP") environment variable.  If that is set to a directory that is
>> mounted as text, then the resulting file has \r\n line endings.
>
>Diff-ing cygcheck outputs between 1.1.4 and 1.1.5-3, I determined
>exactly what is the root cause.  I had my TMP variable set as follows:
>
>    export TMP=$SYSTEMDRIVE\\tmp
>
>just in case some Windows programs were using this variable.  In 1.1.4,
>the TMP (and TEMP) environment variable was automagically converted
>into a POSIX style path, while in 1.1.5-3 it remained unchanged.  Hence,
>I was bitten by the unmounted drives defaulting to text mode feature.

Cygwin now passes on exactly what was set in the environment and in the
argv list.  Translation to UNIX format only happens in the first cygwin
process that is run.  Children of this process receive whatever the user
sets.

So, after the first translation, Cygwin emulates UNIX exactly.

However, if you do something like:

export TMP=/cygdrive/c/tmp

A non-cygwin Windows app will see TMP as "c:\tmp", so there should be no
reason to use Windows path specs when setting TMP environment variables.

cgf

--
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