How to make `mv the hard way' fail

wayne willcox
Mon Dec 13 19:36:00 GMT 2004

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 to move this file"

On Mon, Dec 13, 2004 at 07:30:09PM -0000, Dave Korn wrote:
> > -----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 still does things silently, else it 
> > prompts).  Sounds like a fine candidate for "prompt before 
> > copying" as well, as in "prompt before overwriting or 
> > moving-directories-by-copying"..
>   No, for two reasons:
> 1)  Overloading a flag with two different meanings is obfuscatory.
> 2)  Changing the behaviour/semantics of an existing flag may adversely impact on
> existing scripts/utilities.
>   Therefore I'd say "It's a new feature, so make it a new flag."
>     cheers, 
>       DaveK
> -- 
> Can't think of a witty .sigline today....
> --
> Unsubscribe info:
> Problem reports:
> Documentation:
> FAQ:         

Slowly and surely the unix crept up on the Nintendo user ...
Wayne Willcox                          I will not eat green eggs and ham                     I will not eat them Sam I Am!!
A wise person makes his own decisions, a weak one obeys public opinion.
                -- Chinese proverb

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list