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

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

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
May 8, 2008 09:13
Subject:
Re: [PATCH] File::Copy & permission bits.
Message ID:
b77c1dce0805080913y6806a486lb450d46bbf349d35@mail.gmail.com
2008/5/7 Abigail <abigail@abigail.be>:
>
> 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/Copy.pm#53 edit

Differences ...

==== //depot/perl/lib/File/Copy.pm#53 (text) ====

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

-# Note that this module implements only *part* of the API defined by
-# the File/Copy.pm 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


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