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

From: Sam Steingold <[email-masked]>
Date: Tue, 4 Jan 2011 23:05:16 -0500

On Tue, Jan 4, 2011 at 8:18 PM, Óscar Fuentes <[email-masked]> wrote:
> Sam Steingold <[email-masked]> writes:
>
>> (file-executable-p "c:/gnu/cygwin/bin/bzr")
>> ==> nil
>> which is wrong because bzr is an executable python script.
>
> As you know, there is no 'executable' attribute on Windows.

that's correct.
therefore the emacs code which calls stat() on the filename and checks
the mode is wrong.
check_executable() should return true for all arguments.

-- 
Sam Steingold <http://sds.podval.org>