This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to make `mv the hard way' fail


On Sun, Dec 12, 2004 at 06:40:46PM -0600, Ben Wing wrote:
> When I use `mv' on a directory and any file within it happens to be locked
> for some reason [e.g. I've opened it in Word], it will try to copy the
> entire directory and then delete the original.
> 
> I consider this very dangerous behavior to be happening without my
> specifically requesting it, and I'd like to make this fail rather than doing
> this.  Is there any option in Cygwin to disable this?  Usually it is very
> easy to fix the problem, but I want to be told about it rather than having
> to ^C the mv and hope I caught it before it was in the middle of deleting
> the original.

The windows MOVE command appears to do what you want.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]