What happened to the TMP environment variable?

Posted by Mark0978 on Stack Overflow See other posts from Stack Overflow or by Mark0978
Published on 2010-03-12T18:58:39Z Indexed on 2010/03/12 22:47 UTC
Read the original article Hit count: 316

Filed under:
|

I always heard that the proper way to find the temporary folder on a UNIX machine was to look at the TMP environment variable. When writing code that worked on Windows as well as Linux, I would check for TEMP and TMP.

Today, I discovered that my Ubuntu install does not have that environment variable at all.

I know it seems you can always count on /tmp being there to put your temporary files in, but I understood that TMP was the way the user could tell you to put the temporary files someplace else.

Is that still the case?

© Stack Overflow or respective owner

Related posts about bash

Related posts about tmp