GNU bug report logs -
#7784
executable-find does not find scripts on woe32
Previous Next
Full log
Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):
On 05/01/2011 07:44, Sam Steingold wrote:
> GNU Emacs 23.2.1 (i386-mingw-nt5.2.3790)
> of 2010-05-08 on G41R2F1
> --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include
>
> (executable-find "bzr")
> ==> nil
> (executable-find "svn")
> ==> "c:/gnu/cygwin/bin/svn.exe"
>
> the problem, apparently, stems from:
>
> (file-exists-p "c:/gnu/cygwin/bin/bzr")
> ==> t
> (file-executable-p "c:/gnu/cygwin/bin/bzr")
> ==> nil
> which is wrong because bzr is an executable python script.
>
It may well be, but Windows does not know how to execute it. You either
need to run it by specifying the script as an argument to python.exe
explicitly, or run it from within Cygwin bash, which interprets the #!
comment syntax and presumably has some Cygwin specific way to simulate
the executable bit in the filesystem.
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.