[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: The $TEMP env var

From: Jim.Hyslop
Subject: RE: The $TEMP env var
Date: Tue, 6 Apr 2004 14:07:45 -0400

Derek Robert Price wrote:
> My XP only has TMP set.  Are you sure you or your IT department isn't
> running a special script to set your TEMP?
It's possible. I have a vanilla XP machine at home I can verify this on.

> A quick google search shows that UNIX programs _do_ have a tendency to
> honor one or more of $TMPDIR, $TMP, or $TEMP.  Is there a standard for
> this?  _Should_ CVS be honoring whichever of them it finds first like
> our documentation states?  If so, then would it be okay to honor all
> three on Windows too just to avoid #ifdefs?
I think it would be OK. I suspect the likelihood of an application using a
TMPDIR variable to mean something other than "temporary directory" is pretty
low. (assuming the search order checks TMPDIR first).

Jim Hyslop
Senior Software Designer
Leitch Technology International Inc. (http://www.leitch.com)
Columnist, C/C++ Users Journal (http://www.cuj.com/experts)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]