X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:resent-from:resent-date:resent-message-id
	:resent-to:date:from:to:subject:message-id:reply-to:references
	:mime-version:content-type:in-reply-to; q=dns; s=default; b=ApGM
	tMsgwm5xbsjW6+qhMsgESRNYfzaVbhNRRsEdz5uhhHq7wZz5UQ5TrNRuxZK6QNLo
	m249pyM8nCfGXunL16XZp4fNIw9ZJbJCl6cxgw1FGlnzkDF/eA7fUxPlg9pX+Bvb
	bkylAVySajTNUWfj/FxOO7zm0QmnlnaFa33Coj8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:resent-from:resent-date:resent-message-id
	:resent-to:date:from:to:subject:message-id:reply-to:references
	:mime-version:content-type:in-reply-to; s=default; bh=Ef6iVkKQP0
	jBdCF9a2E3lPFymjk=; b=PozjBEKKkVyIwyD8zTCXP/jh4Z0POtGPBlRkexcDSb
	RzNe5PI0MnXWSWKSRHhi4apvyxhu0/8aGYbn2GeXHfdBrjb7a1pffpZhu/jA8ni3
	FdOjaSJ6TxE4sq7KgmgJnysNTBsIVZRVGVmXFKqcnj/chvBGWVusHvMyIM1ABoW3
	I=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-98.8 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,URIBL_BLOCKED,USER_IN_WHITELIST autolearn=no version=3.3.2
X-HELO: mho-02-ewr.mailhop.org
X-Mail-Handler: Dyn Standard SMTP by Dyn
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX18i0GnFQRN/hJ180izEQrZW
Resent-From: Christopher Faylor <me@cgf.cx>
Resent-Date: Tue, 5 Nov 2013 00:25:35 -0500
Resent-Message-ID: <20131105052535.GA7550@ednor.casa.cgf.cx>
Resent-To: cygwin@cygwin.com
Date: Tue, 5 Nov 2013 00:24:05 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Cygwin exe magic does not understand .com extension? [or .exe sometimes]
Message-ID: <20131105052405.GA7456@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <3310368726.20131105025244@mtu-net.ru> <20131105035821.GB3059@ednor.casa.cgf.cx> <20131105044434.GA23590@raf.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20131105044434.GA23590@raf.org>
User-Agent: Mutt/1.5.20 (2009-06-14)

On Tue, Nov 05, 2013 at 03:44:35PM +1100, <someone who insists on putting "cygwin" in their email address without using their real name> wrote:
>Christopher Faylor wrote:
>
>> On Tue, Nov 05, 2013 at 02:52:44AM +0400, Andrey Repin wrote:
>> >Greetings, All!
>> >
>> >$ mode<Tab>
>> >mode.com     modemui.dll  modex.dll
>> 
>> That would be /bin/sh exe magic from the looks of it.  It is probably
>> just trying to find anything with an executable bit set, just like on
>> Linux.
>> 
>> >$ mode
>> >bash: mode: command not found
>> >
>> >Now, I see two issues.
>> >First, it is that it see .dll files as executables. Which is true in essence,
>> >but rather suspicious, as .dll files are normally not directly executable.
>> >Would really like an explanation for this behavior.
>> >
>> >Second, is that it actually see mode.com, but unable to execute it.
>> 
>> It's likely that "mode.com" would execute it.
>
>this sounds like the problem i posted about the other day that trying to
>execute gcc doesn't work but gcc.exe does. it's a pity. i wish someone had
>an explanation why it happens with some programs like gcc (and mode) but not
>others. a solution would be even better. but i've given up trying to compile
>python modules so i can live with the failure.

No, this isn't the same thing at all.  It is perfectly understandable
why you'd need to type 'mode.com'.  The only reason why you'd need to
add .exe to gcc is if you either have a gcc without an extension
somewhere or you aren't using a cygwin program to start gcc.

cgf

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

