This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Unset TMP/TEMP in profile? (was Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-67)
- From: Angelo Graziosi <angelo dot graziosi at alice dot it>
- To: Cygwin <cygwin at cygwin dot com>
- Date: Mon, 07 Mar 2011 18:09:19 +0100
- Subject: Re: Unset TMP/TEMP in profile? (was Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-67)
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