delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/01/11:21:38

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 1 Dec 2009 17:21:18 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Unset TMP/TEMP in profile? (was Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-67)
Message-ID: <20091201162118.GB8059@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4B14573C DOT 3040409 AT alice DOT it> <a13b5a590911301753w74ccf298g669e55fc58d36c50 AT mail DOT gmail DOT com> <20091201091515 DOT GC30043 AT calimero DOT vinschen DOT de> <b610e770a6f8ab524e0df3c9ce625e84 DOT squirrel AT mail DOT morrison DOT mine DOT nu> <4B151652 DOT 9080107 AT cornell DOT edu>
MIME-Version: 1.0
In-Reply-To: <4B151652.9080107@cornell.edu>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 Dec  1 08:12, Ken Brown wrote:
> On 12/1/2009 5:44 AM, John Morrison wrote:
> >They don't get 'reset' to the windows default... but then, I've not really
> >been following this thread.  Is that what's wanted?
> 
> No, they're not expected to get reset.
> 
> >Also, $PATCH and $TMPDIR weren't defined on my system anyway...
> 
> The discussion about "patch" referred to the program /usr/bin/patch,
> not to an environment variable.
> 
> TMPDIR is apparently not defined by default in the Windows
> environment, so it will usually be undefined unless the user has
> defined it.  I think it should therefore be left alone.
> 
> The proposal, then, is simply to unset TMP and TEMP in the skel
> .bashrc file.  There should be some sort of comment for the sake of
> users who want those variables to be set for whatever reason.
> Here's one possibility, but it may be a little too verbose:
> 
> # TMP and TEMP are defined in the Windows environment.  Leaving
> # them set to the default Windows temporary directory can have
> # unexpected consequences.
> unset TMP
> unset TEMP
> 
> # Alternatively, set them to the Cygwin temporary directory
> # export TMP=/tmp
> # export TEMP=/tmp
> 
> # Or use TMPDIR instead
> # export TMPDIR=/tmp

Thanks Ken, that looks good and it isn't too verbose.  I would even
go a tiny step further and add that you can use any other temporary
directory:

  [...]
  # Alternatively, set them to the Cygwin temporary directory
  # or to any other tmp directory of your choice
  # export TMP=/tmp
  # export TEMP=/tmp


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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