delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/19/19:27: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
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3A68D9C1.E2FF9E73@yahoo.com>
Date: Fri, 19 Jan 2001 19:20:17 -0500
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: Earnie Boyd <cygwin AT cygwin DOT com>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU>
CC: Chuck DOT Irvine AT mail DOT sprint DOT com, Cygwin Mailing List <cygwin AT cygwin DOT com>
Subject: Re: ^M diff related problem
References: <Pine DOT HPP DOT 3 DOT 96 DOT 1010119174530 DOT 23114C-100000 AT hp2 DOT xraylith DOT wisc DOT edu>

Mumit Khan wrote:
> 
> On Fri, 19 Jan 2001 Chuck DOT Irvine AT mail DOT sprint DOT com wrote:
> 
> > Just curious - why might the setting of TEMP make a difference? Thanks,
> > anyway, though.
> 
> It makes a difference for some tools such as patch which creates a
> temporary file. The default TEMP points to /cygdrive/c/WINNT/Temp on
> say a NT or Win2k box which is by default textmode, and patch output
> then adds unexpected ^Ms. I personally set TMPDIR and TEMP to /tmp
> in .bashrc to avoid these little issues.
> 

A few minor corrections.  You've been away too long.  The TEMP variable
is converted by Cygwin to a POSIX path on startup.  Typically in is set
to C:\Temp which gets converted to /cygdrive/c/temp.  Historically the
/cygdrive pseudo mount point would be registered to process in text mode
regardless of whether or not you chose UNIX line endings.  Today, setup
registers the file processing mode based on what you choose, UNIX or
DOS.  Setup also creates a /etc/profile file that unsets TMPDIR and TMP
but not TEMP.  If the variables are not set the programs default to /tmp
anyway so I added a unset of TEMP to my /etc/profile.

> Doesn't make a difference for diff, which doesn't use temporary files.
> 

Didn't know the inner workings of diff.  I suppose Chuck's problem could
also be a non-Cygwin diff program.

Cheers,
Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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