This is the mail archive of the
mailing list for the Cygwin project.
Re: PATHEXT is fundamental to Windows and Should be recognised by CYGWIN
Am 10.08.2016 um 03:01 schrieb Andrey Repin:
PATHEXT tells the shell to consider these file extensions executable.
No. That's what file associations do. cygstart will apply those where
needed, so let's consider that aspect of the case closed, shall we?
PATHEXT has just _one_ job, in those few tools that even use it: it
saves one the burden of referring to a file by its actual name. It's
what makes a given command of just
execute the first reachable one in this list
in the current directory (unconditionally!), or the %PATH%.
So the only thing one has to do in order not to need PATHEXT support is
to call all files by their full names, which a careful script programmer
should always be doing anyway. So PATHEXT gains you nothing in
That leaves the interactive command line as a possible use case to
benefit from PATHEXT. I say Bash <Tab> completion runs circles around
that any day.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple