This is the mail archive of the
mailing list for the Cygwin project.
RE: How to make `mv the hard way' fail
- From: "Ben Wing" <ben at 666 dot com>
- To: "'Raye Raskin'" <rayer at pobox dot com>, <cygwin at cygwin dot com>
- Date: Sun, 12 Dec 2004 23:34:19 -0600
- Subject: RE: How to make `mv the hard way' fail
> 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.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html