delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/03/29/19:16:34

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Mon, 29 Mar 1999 19:15:39 -0500
From: Chris Faylor <cgf AT cygnus DOT com>
To: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Cc: Corinna Vinschen <corinna DOT vinschen AT cityweb DOT de>,
David Dagon <david DOT dagon AT mindspring DOT com>, cygwin AT sourceware DOT cygnus DOT com
Subject: Re: B20: mv deletes files on error (NT)
Message-ID: <19990329191539.A4753@cygnus.com>
References: <36FD516F DOT 45299E3E AT mindspring DOT com> <19990329005659 DOT A2473 AT cygnus DOT com> <3 DOT 0 DOT 5 DOT 32 DOT 19990329114507 DOT 00a07bd0 AT pop DOT ma DOT ultranet DOT com> <3 DOT 0 DOT 5 DOT 32 DOT 19990329170524 DOT 00a0e280 AT pop DOT ma DOT ultranet DOT com> <3700004F DOT E59C6686 AT cityweb DOT de> <3 DOT 0 DOT 5 DOT 32 DOT 19990329180952 DOT 00a17510 AT pop DOT ma DOT ultranet DOT com>
Mime-Version: 1.0
X-Mailer: Mutt 0.95.3i
In-Reply-To: <3.0.5.32.19990329180952.00a17510@pop.ma.ultranet.com>; from Larry Hall (RFK Partners, Inc) on Mon, Mar 29, 1999 at 06:09:52PM -0500

Fwiw, Corinna is right here but because of "hard links".  This comes down
to the question should "Foo" have the same inode as "foo".  The answer
is "Yes."

What that means is that when 'mv' checks for the existence of the target
file it finds that 1) that it exists and 2) that it is the same file.
Since mv refuses to move a file to itself, the only feasible change is
to 'mv'.

-chris

On Mon, Mar 29, 1999 at 06:09:52PM -0500, Larry Hall (RFK Partners, Inc) wrote:
>At 12:35 AM 3/30/99 +0200, Corinna Vinschen wrote:
>>
>>
>>"Larry Hall (RFK Partners, Inc)" wrote:
>>> 
>>> to support this at the expense of existing functionality?  I think this
>>> change needs to be revisited.
>>
>>IMHO, `mv' should be changed, by inserting `#if[n]def __CYGWIN__'.
>>Or would you like to downsize the abilities of a system, because _one_
>>program handles it the wrong way?
>
>Again, depends on your point of view which change will "downsize the 
>abilities of a system".  Considering that the semantics have been what UNIX
>users expect all this time and no one had cause for complaint with it, I'm
>not certain that the change will not be perceived as a downsizing (I've 
>learned over the years that perception is more important than the actual
>facts of a matter).  In any case, I'm not suggesting that hard links should 
>not be supported, if this is indeed the way to support them.  I'm merely 
>questioning whether the current change is not trading one for the other.  In 
>the same flavor as your suggestion to modify "mv" to make it work as it did 
>in the context of your change, what's wrong with modifying "ln" to handle 
>hard links while "mv" and perhaps even cygwin remain as they have always 
>been?  Wouldn't making a change to "mv" necessitate a change to "cp" as 
>well?  What about other utilities???  This doesn't seem to me to be in line 
>with the goal of Cygwin.  
>
>There's always multiple ways of solving a problem.  I'm just questioning if
>this is the best way to solve this one.  I personally don't think it makes 
>sense to change "mv", "ln", or any other utility outside the Cygwin DLL unless
>its absolutely necessary.  That's my only point.  If you are claiming that a 
>change to one ("mv" in your case) or more is the only way to handle this 
>situation, then I guess you've made your point clear as well.  
>
>Is there any other point that's been missed?  
>
>Personally, I foresee rounds of complaints from those used to the semantics
>of "mv", "cp", and others in UNIX-like environments once this change hits
>the release.  It seems to me like it has the potential to be yet another
>"text vs binary" debate.  I'm not interested in seeing such debates 
>repeatedly in this list until all the tools get "properly ported"...:-(
>
>
>Larry Hall                             lhall AT rfk DOT com
>RFK Partners, Inc.                     (781) 239-1053
>8 Grove Street                         (781) 239-1655
>Wellesley, MA, 02482-7797              http://www.rfk.com

-- 
cgf AT cygnus DOT com
http://www.cygnus.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019