develooper Front page | perl.perl5.porters | Postings from May 2008

Re: [PATCH] File::Copy & permission bits.

Thread Previous | Thread Next
Rafael Garcia-Suarez
May 8, 2008 09:13
Re: [PATCH] File::Copy & permission bits.
Message ID:
2008/5/7 Abigail <>:
> The following patch to File::Copy makes if one copies a file, permission
> bits are handled as POSIX 1003.1 describes the shell utility 'cp' ought
> to behave.

Thanks, applied.

I also added the following :

Change 33795 by rgs@scipion on 2008/05/08 16:12:36

	Bump version and document last change.

Affected files ...

... //depot/perl/lib/File/ edit

Differences ...

==== //depot/perl/lib/File/ (text) ====

@@ -19,12 +19,7 @@
 sub cp;
 sub mv;

-# Note that this module implements only *part* of the API defined by
-# the File/ module of the File-Tools-2.0 package.  However, that
-# package has not yet been updated to work with Perl 5.004, and so it
-# would be a Bad Thing for the CPAN module to grab it and replace this
-# module.  Therefore, we set this module's version higher than 2.0.
-$VERSION = '2.12';
+$VERSION = '2.13';

 require Exporter;
 @ISA = qw(Exporter);
@@ -392,6 +387,9 @@
 You may use the syntax C<use File::Copy "cp"> to get at the
 "cp" alias for this function. The syntax is I<exactly> the same.

+As of version 2.13, on UNIX systems, "copy" will preserve permission
+bits like the shell utility C<cp> would do.
 =item move
 X<move> X<mv> X<rename>

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About