develooper Front page | perl.perl5.porters | Postings from November 2003

Re: [PATCH 5.8.2 @21574] make install not installing fully

Thread Previous | Thread Next
From:
Ilya Zakharevich
Date:
November 5, 2003 01:46
Subject:
Re: [PATCH 5.8.2 @21574] make install not installing fully
Message ID:
20031105094624.GA2801@math.berkeley.edu
On Tue, Nov 04, 2003 at 08:52:17PM -0800, Michael G Schwern wrote:
> > What is there to fix?  Sometimes one behaviour is what is desired,
> > sometimes another.  Given that it is not documented what behaviour is
> > the default, I see nothing to fix.
> 
> Ok, we can change it and document it. :)

Unless some scripts rely on the current behaviour.  [The current
behaviour is not documented in README.os2 too.]

> Whether or not File::Copy overwrites by default doesn't strike me as being 
> very platform specific.  Smells more like a bug or an unconsidered 
> consequence of using an OS/2 library call to copy files.
> 
> Can you pass some flag to DosCopy to make it overwrite or unlink the
> destination file beforehand?

This is what bit 0x1 of the third argument `flag' of
File::Copy::syscopy() is for; when set to 1, it means overwrite the
target.  (Other two bits: 0x2 regulates append/replace, and 0x4 what
to do if the file has "Extended Attributes" (one can assign a hash of
arbitrary attributes to a file), and the target file system does not
allow extended attributes.)

Hope this helps,
Ilya

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