delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/09/12:03:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: Robert R Schneck <schneck AT math DOT berkeley DOT edu>
Subject: Re: mv: `Tcollect2' and `collect2' are the same file
Date: Sat, 9 Oct 2004 16:02:25 +0000 (UTC)
Lines: 21
Message-ID: <ck922h$5dm$1@sea.gmane.org>
References: <416774BB DOT 5020201 AT agilent DOT com>
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: clt80-154.carolina.rr.com
User-Agent: slrn/0.9.8.0 (CYGWIN_NT-5.1)
X-IsSubscribed: yes

Earl Chew wrote:
> I got this error trying to build gcc using cygwin 1.5.11. This problem
> is easily reproduced:
>
> X:> touch Tfoo.exe
> X:> chmod a+rx Tfoo
> X:> ls -l Tfoo
> -rwxrwxrwx    1 earlch   mkpasswd        0 Oct  8 22:08 Tfoo
> X:> mv Tfoo foo
> mv: `Tfoo' and `foo' are the same file

Long ago I submitted a patch to fileutils so that at least this would 
give a sensible error message.  I fear the ongoing (?) lack of a 
volunteer for coreutils means it was never taken up.  

It's also very easy to recompile fileutils so that cp and mv treat 
"Tfoo" like "Tfoo.exe" when only the latter exists; the patch is already 
in the source!  I like this behavior, although I guess it could, in very 
unusual circumstances, screw something up were it the default.

Robert


--
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/

- Raw text -


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