How to make `mv the hard way' fail

Larry Hall
Mon Dec 13 05:51:00 GMT 2004

At 12:34 AM 12/13/2004, you wrote:
>> If you have enough disk space you could do "cp -pr FROM TO" 
>> followed by "rm -rf FROM" if there are no errors reported by 
>> the cp command.
>> You could do a "diff -qr FROM TO" before the rm to feel even safer.
>> You could even write a little shell script that does the 
>> above, name it mv, and put it in /usr/local/bin or some other 
>> place that comes before mv.exe in your path.
>> If you really wanted to, that is.
>Maybe someone could add an option to `mv' to make it fail rather than
>copy/rm? E.g. --no-copy.

I expect this is a <> situation, especially
given that the current behavior was added using the same process.
So, feel free to offer a patch if you're so inclined.

Larry Hall                    
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list