Subject: | tmpdir() on Cygwin needs filetest pragma |
The -x functions on Cygwin can fail when used against windows filesystem
paths. I observed this failure in tmpdir(), as -w 'C:\Temp' returns the
empty string. As a result, tmpdir doesn't respect the value of
$ENV{TMPDIR} if that is a path back to the Windows filesystem.
Here is a simplified example from the Cygwin command line of the problem
and the result using filetest:
$ perl -e 'print -w "c:\\temp"'
$ perl -e 'use filetest qw/access/; print -w "c:\\temp"'
1