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, IlyaThread Previous | Thread Next