delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-3.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KHOP_THREADED,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <BLU0-SMTP97B6AD85F5813BE73A584ACED20@phx.gbl> |
References: | <BLU0-SMTP193F74A0A7FC396B8160663CED30 AT phx DOT gbl> <20120709154456 DOT GA6696 AT ednor DOT casa DOT cgf DOT cx> <BLU0-SMTP224D901B80815ECFB99E3BCED30 AT phx DOT gbl> <1BBEF94B6B46E54980290D150A6F2EDD20C950F5 AT SN2PRD0610MB396 DOT namprd06 DOT prod DOT outlook DOT com> |
User-Agent: | K-9 Mail for Android |
In-Reply-To: | <1BBEF94B6B46E54980290D150A6F2EDD20C950F5@SN2PRD0610MB396.namprd06.prod.outlook.com> |
MIME-Version: | 1.0 |
Subject: | RE: Inconsistence on file operation when the name already exists with exe extension |
From: | Aaron Schneider <notstop AT users DOT sourceforge DOT net> |
Reply-To: | notstop AT users DOT sourceforge DOT net |
Date: | Tue, 10 Jul 2012 10:34:44 +0200 |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
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 |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id q6A8jNWG011330 |
Matt Seitz <mseitz AT mhseitz DOT onmicrosoft DOT com> escribió: >> On Behalf Of Aaron Schneider >> >> I believe that Cygwin tries to emulate cmd.exe > >No, Cygwin does not try to emulate the cmd.exe shell. Cygwin tries to >emulate a shell running on Linux, usually the "bash" shell. > >That's why you have to use "./file.exe" or "./file" to run a program >from the current directory (if the current directory is not included in >PATH). > >If you want to use "cmd.exe" as your shell, you can try running >"cmd.exe", and then execute the other Cygwin programs you want directly >(C:\cygwin\bin\file.exe) from cmd.exe. But that may run into problems. > > > >-- >Problem reports: http://cygwin.com/problems.html >FAQ: http://cygwin.com/faq/ >Documentation: http://cygwin.com/docs.html >Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple You're right that cygwin shell tries to emulate bash, I just twisted things. The problem is that in unix executables don't have extension but they actually do in cygwin so I think that's the root of the problem. Probably compiling binaries under cygwin without the exe extension, like unix, is not an alternative, or is it? Cygwin may detect if it is executable checking if it's PE format; if it is perl script. Just check if file is present in path or run. /file -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |