X-Recipient: archive-cygwin AT delorie DOT 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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=diXK7WXgC5x+RpoH4TU5/oJI7/J/YVhWZ9QGZJY/F5PBQiwyeELPH bo7XdQV3uKWqakjSgsillDzD6wLX8Sb6riseRWi+dIyvxAzop9jEPfYP9tN+FM5A LVfaGqpVQt9cyzhGIwnnUAU5EFMroSxlB6xhuNZrw1hk20vIboNjYg= 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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=EJsVhjR53D7XJ9tSEnAwiKLLIYk=; b=hD/9UZ+fBIFIV7FZzHt6c54kMM1T aTX8klxf1Jj4rbkG4o+AKyUhts+46ylEduhmZAUKCRcAZ0aevl3mXCNnEz2Y7a3s ym6BS2PZHy71LzzSDYJAwjBGiNi3GR+T2V0yZbAnpYyfplxElz1ypNtG+MzrBS4/ BmBWE9ohK0AJ3H8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.2 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mho-01-ewr.mailhop.org X-Mail-Handler: Dyn Standard SMTP by Dyn X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+hQFgWHtZZIEu+/LGtgi74 Date: Mon, 4 Nov 2013 22:58:21 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Cygwin exe magic does not understand .com extension? Message-ID: <20131105035821.GB3059@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <3310368726 DOT 20131105025244 AT mtu-net DOT ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3310368726.20131105025244@mtu-net.ru> User-Agent: Mutt/1.5.20 (2009-06-14) On Tue, Nov 05, 2013 at 02:52:44AM +0400, Andrey Repin wrote: >Greetings, All! > >$ mode >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. >P.S. >$ set | grep PATHEXT >PATHEXT='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1' % cd /cygwin/sources % grep -B17 PATHEXT *(.) environ.cc-/* Minimal list of Windows vars which must be converted to uppercase. environ.cc- Either for POSIX compatibility of for backward compatibility with environ.cc- existing applications. */ environ.cc-static struct renv { environ.cc- const char *name; environ.cc- const size_t namelen; environ.cc-} renv_arr[] = { environ.cc- { NL("ALLUSERSPROFILE=") }, // 0 environ.cc- { NL("COMMONPROGRAMFILES=") }, // 1 environ.cc- { NL("COMPUTERNAME=") }, environ.cc- { NL("COMSPEC=") }, environ.cc- { NL("HOME=") }, // 4 environ.cc- { NL("HOMEDRIVE=") }, environ.cc- { NL("HOMEPATH=") }, environ.cc- { NL("NUMBER_OF_PROCESSORS=") }, // 7 environ.cc- { NL("OS=") }, // 8 environ.cc- { NL("PATH=") }, // 9 environ.cc: { NL("PATHEXT=") }, i.e., the only thing Cygwin does with PATHEXT is convert it to upper case. 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