delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/04/08/14:08:39

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_00,SPF_NEUTRAL,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4BBE1B8E.2030405@cornell.edu>
Date: Thu, 08 Apr 2010 14:08:14 -0400
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: On TMP, TEMP... variables
References: <4BBE0C53 DOT 9030905 AT alice DOT it>
In-Reply-To: <4BBE0C53.9030905@alice.it>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 4/8/2010 1:03 PM, Angelo Graziosi wrote:
> I remember that there was some discussion on December[*] regarding these
> environment variables. The conclusion was, if I remember correctly, that
> Cygwin, by default, *does not set* them, like GNU/Linux systems.
>
> Indeed my Windows installation sets them but Cygwin shows that they *are
> not*:
>
> $ echo $TEMP
>
> $ echo $TMP
>
> $ echo $TMPDIR
>
> Now in http://cygwin.com/cygwin-ug-net/setup-env.html I read:
>
> "In addition to PATH, HOME, and LD_LIBRARY_PATH, there are three other
> environment variables which, if they exist in the Windows environment,
> are converted to UNIX format: TMPDIR, TMP, and TEMP[...] If set, these
> variables will be used by some Cygwin applications, possibly with
> unexpected results."
>
> These words seem to contradict the above statement. So, how is the 'matter'?

Cygwin doesn't set them, it just converts them to UNIX format if they're 
already set.  But then, as the documentation goes on to say, the default 
~/.bashrc unsets them.  So I don't think there's any contradiction.

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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