[perl #89940] File::Spec->tmpdir and env changes
authorFather Chrysostomos <sprout@cpan.org>
Sun, 9 Jun 2013 06:01:07 +0000 (23:01 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 9 Jun 2013 06:25:13 +0000 (23:25 -0700)
commit82730d4c29900a581a5c4f6cd8c0cdef16c6e687
tree99e30b878e7256fa5942d595f176d15b9665af38
parent483ad8291bb83bb55f59f0ff324af70346c4945a
[perl #89940] File::Spec->tmpdir and env changes

If the environment changes, File::Spec->tmpdir should respect that and
recalculate the temp directory.

The only objection raised in the ticket was that File::Spec is already
accused of being too slow, so removing the cache would not be a good
idea.  So I put in a check to see whether the relevant environment
variables have changed since the last call to tmpdir.
dist/Cwd/lib/File/Spec/Cygwin.pm
dist/Cwd/lib/File/Spec/Mac.pm
dist/Cwd/lib/File/Spec/OS2.pm
dist/Cwd/lib/File/Spec/Unix.pm
dist/Cwd/lib/File/Spec/VMS.pm
dist/Cwd/lib/File/Spec/Win32.pm
dist/Cwd/t/tmpdir.t