Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Hannu E K Nevalainen" To: Subject: RE: cp breaking weirdly when trying to copy an executable without specifying the .exe extension Date: Sun, 16 May 2004 15:29:09 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit In-Reply-To: <000f01c439fb$c3c44190$78d96f83@robinson.cam.ac.uk> > From: Max Bowsher > Sent: Friday, May 14, 2004 11:38 PM > $ touch foo.exe > $ cp foo bar > cp: `foo' and `bar' are the same file > > The above error message is rather confusing. > > Is Cygwin's cp supposed to transparently permit the omission of > the .exe extension, or am I misremembering? cp and mv comes out of the same box (same source file) and both seems to have problems with this. I had a look some time ago but came to no conclusion, primarily due to limited time to begin with. This has been on the list several times before, AFAIK (from reading here) no-one has made efforts to do anything about it. IIRC/Long shot/Long time no see: Seems to be some kind of interaction with (was it?)stat() beeing "hacked" to check for .exe also, as is scanned for. (mv using rename for moving?) /Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E ** on a mailing list; please keep replies on that particular list ** -- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); -- --END OF MESSAGE-- -- 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/