This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: How to make `mv the hard way' fail
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Mon, 13 Dec 2004 19:30:09 -0000
- Subject: RE: How to make `mv the hard way' fail
> -----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: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/