delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/20/14:22:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.0.1.1.0.20040220141302.0391ba10@127.0.0.1>
X-Sender:
Date: Fri, 20 Feb 2004 14:20:29 -0500
To: Robert R Schneck <schneck AT math DOT berkeley DOT edu>, cygwin AT cygwin DOT com
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Subject: Re: cp, install, and the .exe extension
In-Reply-To: <c15jtg$jmj$1@sea.gmane.org>
References: <c13c7j$ue4$1 AT sea DOT gmane DOT org> <20040219232350 DOT GE23994 AT redhat DOT com> <c15jtg$jmj$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0

At 01:33 PM 2/20/2004, Robert R Schneck you wrote:
>Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com> wrote:
>> On Thu, Feb 19, 2004 at 10:09:55PM +0000, Robert R Schneck wrote:
>>>If I replace "copy.c" with either of the other two and rebuild, I get a 
>>>"cp" which *does* have special handling for the .exe extension.
>>>Did the fileutils maintainer just forget to do this?
>>
>> No.
>
>Indeed.  Does this mean there is some reason that it is considered 
>harmful to have cp do it, but appropriate to have install do it?


Yes.


>If so, can you explain?  


No.


>I don't question, I'm just curious!


Yeah, sure...

OK, I'm just kiddin' you. ;-)  Think about a 'cp' that transparently handles 
'.exe' and a directory with 'foo' and 'foo.exe'.  You need to be able to 
copy both.  'install' is a special purpose utility.  Many projects that
use it to install don't consider that executables may require extensions on 
other platforms.  So they're written to just install 'foo'.  That causes
install failures.  It makes sense to "relax" the rules here, since it 
helps more than it hurts.  The reverse is true for 'cp' and other general 
purpose utilities.


>In any case, I'd like to put in a request to change the error message cp 
>gives when "cp foo bar" is tried and only foo.exe exists.  
>Currently it says
>cp: `foo' and `bar' are the same file
>which is needlessly obscure.


How about a patch instead of a request? ;-)


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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