.com & other executable filename extensions

Igor Pechtchanski pechtcha@cs.nyu.edu
Thu Mar 13 02:19:00 GMT 2003


On Wed, 12 Mar 2003, Lee D. Rothstein wrote:

> Anybody know why under both "cygwin.bat" & 'cmd.exe', I must explicitly
> type the '.com' extension in order to get a '.com' file to execute.
>
> I've tried adding the following line to
> 'cygwin.bat':
>
>   set PATHEXT=%PATHEXT%;.sf;.ksf;.cmd;.com;.exe;.bat;.awk;.pl;.py
>
> No help.
> If this is covered anywhere in the documentation, it's got me fooled.
> Lee

FYI, bash (which is what I assume is invoked by cygwin.bat) doesn't honor
PATHEXT.  Cygwin has a special feature that looks for a .exe (and only
.exe, .bat won't be found either) if the file with null extension does not
exist.

I'm not sure about cmd.exe, probably depends on your version of the OS (or
maybe MS deprecated it altogether).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list