Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Dir.tmpdir returns working directory #4184
This may be related to #405, but it seems inconsistent if nothing else. No environment variables presently set for temp directory.
In JRuby 22.214.171.124 - 126.96.36.199, 1.7.24, as well as MRI 2.3.1p112 (2016-04-26 revision 54768)
Additionally, I tried setting the various environment variables with no success:
Note that the following works as expected:
It looks like e292b95 changed this behavior as part of the fix for #3983. Previously, there was a conditional
This doesn't seem desirable -
As a follow up on this, specifying the various environment variables doesn't work so long as they're world writable. So the only way to specify the temp directory in 188.8.131.52 - 184.108.40.206 is to either create a specific alternate non-world-writable temp directory or hope that the execution context doesn't match the condition.