> > the old rexxutil code had a test for the new and the old files resolving > to the same target > The intent was to follow the behavior of mv (not rename), and mv doesn't allow this
SysFileMove() function fails if the target file exists, but on Linux, the > rename() function appears to work on the rename > as above, SysFileMove() follows mv behavior The docs for the rename() function aren't really clear about that > situation. Is that expected? > http://man7.org/linux/man-pages/man2/rename.2.html:"If *oldpath* and *newpath* are existing hard links referring to the same file, then *rename*() does nothing, and returns a success status" Personally I think SysFileMove() should never overwrite an existing file (i.e. run as if mv -n was specified), and we should keep SysFileMove() behavior as compatible between OS's.
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel