develooper Front page | perl.perl5.porters | Postings from October 2011

[perl #96158] File::Copy needs fixing

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
October 29, 2011 01:03
Subject:
[perl #96158] File::Copy needs fixing
Message ID:
rt-3.6.HEAD-31297-1319875386-953.96158-15-0@perl.org
On Wed Aug 03 22:08:59 2011, LAWalsh wrote:
> Abigail wrote:
> > In File::Copy 2.15 and later, there's a slight difference between
'copy',
> > and 'cp'. The latter will preserve the permission bits, as the
system 'cp'
> > doest. It doesn't preserve timestamps (since a plain 'cp' doesn't do so
> > either).
> ---
> 	But Why should unix get the worst support when Syscopy on VMS,
> OS/2, Mac and Win32, all use routines that preserve all the file
attributes.
> 
> 	Why would one choose to do less on unix when the system 'cp'
> command has the ability to copy everything.
> 
> 	Not copying metadata isn't copying the file file.
> 
> 	Now if the routine was named File::CopyData, it might be
> different, but now days, I'd expect a digital copy to be 'precise' and
> complete.
> 
> 	Is there some reason why this shouldn't be the default?

Probably backward compatibility.


-- 

Father Chrysostomos


Thread Previous | 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