On Thu, Jul 18, 2002 at 10:33:45AM -0400, Nikola Janceski wrote:
I think I have stumbled onto a bug. I'd like one of the gurus (Jeff, druiex,
Jenda or any perlguy.com) to confirm that my test is correct or if I missed
something in docs.
I'm not on that list, but I'll bite anyways :-)
using
On Jul 18, Nikola Janceski said:
I think I have stumbled onto a bug. I'd like one of the gurus (Jeff, druiex,
Jenda or any perlguy.com) to confirm that my test is correct or if I missed
something in docs.
I have confirmed the same result. The -T test on a file with no read
permissions causes
On Thu, Jul 18, 2002 at 04:53:46PM +0200, Michael Lamertz wrote:
The 'stat' structure is used. That structure has been filled by the -T,
since the file has been accessed, regardless of the fact that the test
for the 'text' type failed.
DUH! Me Idiot, Ugh! I mixed up || and in my own
It appears that -T cause perl to avoid doing the stat, opting for open
and fstat instead (so that it can check the file header to see if it's
text). The open of course fails, and thus the stat does not get
populated.
On Thursday, July 18, 2002, at 11:04 AM, Michael Lamertz wrote:
On Thu,
On Jul 18, George Schlossnagle said:
It appears that -T cause perl to avoid doing the stat, opting for open
and fstat instead (so that it can check the file header to see if it's
text). The open of course fails, and thus the stat does not get
populated.
That's exactly what I found. My patch