This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: directories for temporary files
- From: Achim Gratz <Stromeko at nexgo dot de>
- To: cygwin at cygwin dot com
- Date: Sat, 07 Mar 2015 11:58:58 +0100
- Subject: Re: directories for temporary files
- Authentication-results: sourceware.org; auth=none
- References: <21754 dot 10842 dot 551067 dot 251606 at zaphod dot ms25 dot net>
Reinhard Kotucha writes:
> However, there is a bug in /etc/profile. The variables TMP and TEMP
> are set to /tmp but they are absolutely useless. These variables are
> not used by any program. Thus all programs write temporary files to
> /tmp, regardless of the settings TMP or TEMP.
They are used by Windows programs when they are started from Cygwin.
Those lines are actually preceded by a comment that explains this.
> The appropriate variable on Unix is TMPDIR. It's recognized by
> programs on *all* Unix systems.
>
> You can confirm this easily. Create a directory /tmp/foo and set
> TMPDIR=/tmp/foo. You'll see that all temporary files go to the
> specified directory then. No chance with TMP or TEMP.
âand since the default already is /tmp there is no reason to set this
variable explicitly in /etc/profile.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada
--
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