This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: directories for temporary files


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]