X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0	tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4D75113F.9030108@alice.it>
Date: Mon, 07 Mar 2011 18:09:19 +0100
From: Angelo Graziosi <angelo.graziosi@alice.it>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9
MIME-Version: 1.0
To: Cygwin <cygwin@cygwin.com>
Subject: Re: Unset TMP/TEMP in profile? (was Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-67)
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Just for the record...

Andy Koppe wrote:
> Some (badly written) Windows programs expect TEMP and/or TMP to always
> be set to a valid directory and will misbehave when they aren't.

[...]

> and if
> they're unlucky, stuff might even get overwritten.

For Windows native applications, I adopted this solution in .bashrc

acroread()
{
     TEMP=/home/$USER/Temp \
     cyg-wrapper.sh "/WinXP/Programmi/Adobe/Reader 
10.0/Reader/AcroRd32.exe" \
         "$@" 2>/dev/null
}

etc.

Ciao,
Angelo.

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

