GNU bug report logs - #7784
executable-find does not find scripts on woe32

Previous Next

Package: emacs;

Reported by: Sam Steingold <sds <at> gnu.org>

Date: Tue, 4 Jan 2011 23:38:02 UTC

Severity: wishlist

Merged with 36270

Full log


View this message in rfc822 format

From: Óscar Fuentes <ofv <at> wanadoo.es>
To: Sam Steingold <sds <at> gnu.org>
Cc: 7784 <at> debbugs.gnu.org
Subject: bug#7784: executable-find does not find scripts on woe32
Date: Wed, 05 Jan 2011 02:18:04 +0100
Sam Steingold <sds <at> gnu.org> 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.




This bug report was last modified 5 years and 362 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.