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

Re: [perl #96158] File::Copy needs fixing

Thread Previous
From:
Linda W
Date:
August 3, 2011 22:08
Subject:
Re: [perl #96158] File::Copy needs fixing
Message ID:
4E3A2911.3060604@tlinx.org
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?


Thread Previous


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