Subject: Re: bug#7784: executable-find does not find scripts on woe32

From: Óscar Fuentes <[email-masked]>
Date: Wed, 05 Jan 2011 02:18:04 +0100

Sam Steingold <[email-masked]> writes:

> (file-executable-p "c:/gnu/cygwin/bin/bzr")
> ==> nil
> which is wrong because bzr is an executable python script.

How does Emacs know that bzr is a Python script? Because it has

#!/usr/bin/python

as the first line? That only makes sense within the Cygwin environment,
i.e. if you are running a Cygwin-based Emacs.

As you know, there is no 'executable' attribute on Windows. Cygwin fakes
it.