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

2004-12-13 Thread wayne willcox
Sounds like a bad idea to me. That would be changing the basic functionlity of the mv command. If you really want that kind of interaction it is a trival shell script that wraps the mv command and can prompt the user for any number of things including "are you sure",, "again are you sure you want

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

2004-12-13 Thread Shankar Unni
wayne willcox wrote: If you really want that kind of interaction it is a trival shell script that wraps the mv command and can prompt the user for any number of things including "are you sure",, "again are you sure you want to move this file" mv already *has* the -i option, and it does just what yo

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

2004-12-13 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Shankar Unni > Sent: 13 December 2004 19:21 > By the way, what do folks think of tying this to the "-i" > functionality? > > Currently, "-i" is defined as "prompt before overwriting" > (i.e. if the > target is *not* present, it sti

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

2004-12-13 Thread Shankar Unni
Larry Hall wrote: At 12:34 AM 12/13/2004, Ben Wing wrote: 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 Indeed. I, too, have felt the need for this, and feel the same way as Ben. Let me

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

2004-12-12 Thread Larry Hall
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 shel

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

2004-12-12 Thread Ben Wing
> 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 m

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

2004-12-12 Thread Raye Raskin
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 lik

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

2004-12-12 Thread Yitzchak Scott-Thoennes
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 behavi

How to make `mv the hard way' fail

2004-12-12 Thread Ben Wing
Apologies if this is a FAQ. 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 specifica

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

2004-12-12 Thread Larry Hall
At 07:40 PM 12/12/2004, you wrote: >Apologies if this is a FAQ. > >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 beh