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 14:19
Subject:
Re: [PATCH 5.8.2 @21574] make install not installing fully
Message ID:
20031105221908.GC3149@math.berkeley.edu
On Wed, Nov 05, 2003 at 02:44:35AM -0800, Michael G Schwern wrote:
> > Unless some scripts rely on the current behaviour.  [The current
> > behaviour is not documented in README.os2 too.]
> 
> When you copy a file on OS/2 in the shell, does it overwrite by default?  

First of all, Perl uses pdksh on OS/2 (which has no copy builtin).
;-) Second, there is not 1 shell (CMD, 4OS2); third, this behaviour is
settable, and few programmers would know the default.

Anyway: the "standard" shell (CMD) overwrites without prompt.

> Also, what's the failure mode when the destination file exists?  Does
> File::Copy die?  Do nothing?  Warn?  If it dies or warns I can't see 
> anyone relying on it.

Fails setting a proper $! $^E (like any other builtin).

> I don't relish the idea of having to write:
> 
> 	unlink($dest) and copy($src, $dest);
> 
> to be guarantee compatibility.

One can define File::Copy::copy_overwrite().

> Could you alter copy() so that bit is set by default when it calls
> syscopy()?

Technically, this is 1-bit edit of os2/os2.c.  But I care about
backward-compatibility much, so would like to see a pressing argument
to do so.

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