Received: from spf1.us4.outblaze.com (spf1.us4.outblaze.com [205.158.62.23]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id iAIM0km4018582 for ; Thu, 18 Nov 2004 22:00:47 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf1.us4.outblaze.com (Postfix) with ESMTP id AD12D53C85 for ; Thu, 18 Nov 2004 22:00:40 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CUuTO-0005db-Av for migo@homemail.com; Thu, 18 Nov 2004 17:09:50 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CUuSX-0005dW-OE for gnu-arch-users@gnu.org; Thu, 18 Nov 2004 17:08:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CUuSX-0005dJ-Am for gnu-arch-users@gnu.org; Thu, 18 Nov 2004 17:08:57 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CUuSX-0005dG-8C for gnu-arch-users@gnu.org; Thu, 18 Nov 2004 17:08:57 -0500 Received: from [129.255.60.186] (helo=ct.radiology.uiowa.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CUuJH-0001r7-2j for gnu-arch-users@gnu.org; Thu, 18 Nov 2004 16:59:23 -0500 Received: from [192.168.1.11] (12-217-241-0.client.mchsi.com [12.217.241.0]) by ct.radiology.uiowa.edu (8.11.6/8.11.6) with ESMTP id iAILxK330861; Thu, 18 Nov 2004 15:59:20 -0600 Message-ID: <419D1B34.2030405@arbash-meinel.com> Date: Thu, 18 Nov 2004 15:59:16 -0600 From: John A Meinel User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Adrian Irving-Beer Subject: Re: [Gnu-arch-users] Re: darcs vs tla References: <419ABADB.5020506@arbash-meinel.com> <419B7885.9030903@arbash-meinel.com> <20041118064240.7a57bf81.erikd-tla@mega-nerd.com> <20041118103925.5b32b707.erikd-tla@mega-nerd.com> <419BEB98.3030207@arbash-meinel.com> <20041118173352.613955dc.erikd-tla@mega-nerd.com> <419CCC40.9090200@arbash-meinel.com> <419D0E01.9070904@arbash-meinel.com> <20041118214019.GH3484@wisq.net> In-Reply-To: <20041118214019.GH3484@wisq.net> X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Cc: gnu-arch-users@gnu.org, Erik de Castro Lopo X-BeenThere: gnu-arch-users@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: a discussion list for all things arch-ish List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0529725863==" Sender: gnu-arch-users-bounces+migo=homemail.com@gnu.org Errors-To: gnu-arch-users-bounces+migo=homemail.com@gnu.org Status: RO Content-Length: 3088 Lines: 109 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============0529725863== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig12936467AAE84F291BB4D12F" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig12936467AAE84F291BB4D12F Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Adrian Irving-Beer wrote: > On Thu, Nov 18, 2004 at 03:02:57PM -0600, John A Meinel wrote: > > >>hackerlab creates a temporary executable to generate an output file >>and then deletes it. But on cygwin/windows the file ends with a >>.exe, so rm cannot find it to delete it. > > > I know there is no 'gcc contract', but doesn't saying 'ld -o foo' or > 'gcc -o foo' and getting foo.exe (a) violate the expectation of using > -o, and (b) break almost every other Makefile out there? > > Not saying it's not a problem. Just confuses me why Cygwin would do > this. As I recall, all their system executables end in .exe too, > although you call them without like in Unix. > > Does Windows literally only run files with a .exe extension? I haven't > used Cygwin or Windows in years. Windows will only run files with a .exe, .com, .bat, maybe a couple more. Windows determines what is executable from the extension (it has no X bit) cygwin works around this by pretending when you say ls That you really meant ls.exe A lot of makefiles I've seen have this workaround EXE= ifeq($OS,Windows_NT) EXE=.exe endif myprog$(EXE) : You can also get make to work by supplying rm ,es$(EXE) or using -rm ,es which won't actually remove ,es.exe I think most tools convert the filename to exe as needed. For instance: $ ls /bin/ls /bin/ls $ ls /bin/ls* /bin/ls.exe Notice that there does not exist a file named "/bin/ls" it is actually /bin/ls.exe I'm guessing that rm is an exception because they didn't want to remove something you didn't exactly say (since you are deleting). Playing nice with ls, find, etc is all good, but secretly deleting something would be bad. John =:-> --------------enig12936467AAE84F291BB4D12F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBnRs0JdeBCYSNAAMRAnSNAJ9mclIuLx5cw7a62E8dVQcf+cZGLgCgmp1d bsCNOrQU0WGFQ21ayJayzCQ= =D2xF -----END PGP SIGNATURE----- --------------enig12936467AAE84F291BB4D12F-- --===============0529725863== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Gnu-arch-users mailing list Gnu-arch-users@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-arch-users GNU arch home page: http://savannah.gnu.org/projects/gnu-arch/ --===============0529725863==--