develooper Front page | perl.perl5.porters | Postings from January 2019

[perl #133030] blead File::Copy fails on netbsd 6.1.5

Thread Next
From:
Tony Cook via RT
Date:
January 1, 2019 22:36
Subject:
[perl #133030] blead File::Copy fails on netbsd 6.1.5
Message ID:
rt-4.0.24-30283-1546382185-1434.133030-15-0@perl.org
On Sun, 15 Apr 2018 17:55:04 -0700, tonyc wrote:
> This doesn't try to work around OS X's special behaviour.

I tried adding sub-second times for OS X 10.13, but apparently it doesn't support it.

For a file stored on a Linux system, accessible via CIFS (Samba):

Directly on Linux:

$ perl -MTime::HiRes=stat -le 'print +(stat shift)[9]' ~/test.txt
1546381854.41244

On cygwin:

$ perl -MTime::HiRes=stat -le 'print +(stat shift)[9]' /cygdrive/n/test.txt
1546381854.41244

On Darwin:

pallas:t tony$ ./perl -I../lib -MTime::Hires=stat -le 'print +(stat shift)[9]' /Volumes/tony/test.txt
1546381854

The local filesystem (HFS+) doesn't support sub-second timestamps.

> 
> Unrelated to this particular bug - there's also Win32 functions to
> accessing and updating file times to sub-second precision, which I
> might add at some point.

This still something to do.

Tony

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=133030

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About