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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Sam Steingold <sds@HIDDEN>; merged with #36270; dated Tue, 4 Jan 2011 23:38:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 7784 36270. Request was from Juanma Barranquero <lekktu@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 7784 <at> debbugs.gnu.org:


Received: (at 7784) by debbugs.gnu.org; 5 Jan 2011 23:06:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 05 18:06:26 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PacR0-0006Z0-FX
	for submit <at> debbugs.gnu.org; Wed, 05 Jan 2011 18:06:26 -0500
Received: from mail-px0-f172.google.com ([209.85.212.172])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jasonrumney@HIDDEN>) id 1PacQz-0006Yp-9l
	for 7784 <at> debbugs.gnu.org; Wed, 05 Jan 2011 18:06:25 -0500
Received: by pxi6 with SMTP id 6so3244331pxi.3
	for <7784 <at> debbugs.gnu.org>; Wed, 05 Jan 2011 15:13:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:sender:received:from:to:cc
	:subject:references:date:in-reply-to:message-id:user-agent
	:mime-version:content-type:content-transfer-encoding;
	bh=XDHGLYDYriqmFOyT+u276r6buzvcr0SXcCCx3h31y48=;
	b=lJ6bhBB1a8rqWXLStOMFqIp1QSTtXH3kBJS6GPATxggxIRUDdSQ1Cf046CAiTH6VbN
	hPJ1klaR2LM1KBL5V2RLd3ry1sjDkIcqV9j5fl33dYsEY1iOricQqsTmS/QP5KTqP6TL
	FPFHol2bwSpBfT85ljbnM31lXPnBFURAKP2yM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=sender:from:to:cc:subject:references:date:in-reply-to:message-id
	:user-agent:mime-version:content-type:content-transfer-encoding;
	b=RmzX+ylq+PURsux5OwVNhFZ/UYiFlLFQM0ExADEzN0l66d3HsKXFBTQUnYVOffdGyo
	ucooeWuCZXGXFD+la/2yJzIs6YgmE+sCTJCGtz3ZD+IGBdg0YIj36LoBqYsHX800e+JX
	VRYJGu5EIecLA/ri6nt/HMy4ph2PVFfOgXz68=
Received: by 10.143.40.13 with SMTP id s13mr201371wfj.71.1294269217580;
	Wed, 05 Jan 2011 15:13:37 -0800 (PST)
Received: from home.jasonrumney.net ([180.72.42.34])
	by mx.google.com with ESMTPS id w22sm207744wfd.19.2011.01.05.15.13.29
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Wed, 05 Jan 2011 15:13:31 -0800 (PST)
Received: by home.jasonrumney.net (Postfix, from userid 1000)
	id 05524F33; Thu,  6 Jan 2011 07:13:25 +0800 (MYT)
From: Jason Rumney <jasonr@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#7784: executable-find does not find scripts on woe32
References: <AANLkTimt58CewrfPUSi5qYN-9Uttm7UJJ3QOooWi293h@HIDDEN>
	<878vz0173n.fsf@HIDDEN>
	<AANLkTim7Tu6tAP_+SkuD9_s27UnAz+0-6A2XYRw+A98B@HIDDEN>
	<E1PaRVY-0004ZI-CK@HIDDEN> <874o9n1l9h.fsf@HIDDEN>
	<83vd23mi5s.fsf@HIDDEN>
Date: Thu, 06 Jan 2011 07:13:25 +0800
In-Reply-To: <83vd23mi5s.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 05 Jan
	2011 18:25:51 +0200")
Message-ID: <87d3obeyga.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: 7784
Cc: =?utf-8?Q?=C3=93scar?= Fuentes <ofv@HIDDEN>, 7784 <at> debbugs.gnu.org,
	sds@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.1 (----)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: =C3=93scar Fuentes <ofv@HIDDEN>
>> Cc: Sam Steingold <sds@HIDDEN>, 7784 <at> debbugs.gnu.org
>> Date: Wed, 05 Jan 2011 15:24:26 +0100
>>=20
>> One thing I noticed while experimenting with file-executable-p is that
>> it returns false for files with extensions listed in PATHEXT. For
>> instance, .JS is listed on one machine's PATHEXT but, after creating
>> foo.js, (file-executable-p "foo.js") returns nil.
>>=20
>> As those files are directly executable from the shell, maybe Emacs
>> should recognize them as executables as well?
>
> Patches for supporting PATHEXT are most welcome, TIA.

It might also be a good idea to merge the list used by is_exec in w32.c
with the list that is used as the initial value of exec-suffixes.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7784; Package emacs. Full text available.

Message received at 7784 <at> debbugs.gnu.org:


Received: (at 7784) by debbugs.gnu.org; 5 Jan 2011 16:18:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 05 11:18:40 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PaW4O-0005Mt-6U
	for submit <at> debbugs.gnu.org; Wed, 05 Jan 2011 11:18:40 -0500
Received: from mtaout22.012.net.il ([80.179.55.172])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <eliz@HIDDEN>) id 1PaW4M-0005Mf-4o
	for 7784 <at> debbugs.gnu.org; Wed, 05 Jan 2011 11:18:38 -0500
Received: from conversion-daemon.a-mtaout22.012.net.il by
	a-mtaout22.012.net.il (HyperSendmail v2007.08) id
	<0LEK00F005DK0100@HIDDEN> for
	7784 <at> debbugs.gnu.org; Wed, 05 Jan 2011 18:25:49 +0200 (IST)
Received: from HOME-C4E4A596F7 ([77.127.127.157]) by a-mtaout22.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0LEK00EKU5MZ22B0@HIDDEN>;
	Wed, 05 Jan 2011 18:25:48 +0200 (IST)
Date: Wed, 05 Jan 2011 18:25:51 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#7784: executable-find does not find scripts on woe32
In-reply-to: <874o9n1l9h.fsf@HIDDEN>
To: =?utf-8?Q?=C3=93scar_Fuentes?= <ofv@HIDDEN>
Message-id: <83vd23mi5s.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-transfer-encoding: QUOTED-PRINTABLE
X-012-Sender: halo1@HIDDEN
References: <AANLkTimt58CewrfPUSi5qYN-9Uttm7UJJ3QOooWi293h@HIDDEN>
	<878vz0173n.fsf@HIDDEN>
	<AANLkTim7Tu6tAP_+SkuD9_s27UnAz+0-6A2XYRw+A98B@HIDDEN>
	<E1PaRVY-0004ZI-CK@HIDDEN>
	<874o9n1l9h.fsf@HIDDEN>
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 7784
Cc: 7784 <at> debbugs.gnu.org, sds@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.0 (--)

> From: =C3=93scar Fuentes <ofv@HIDDEN>
> Cc: Sam Steingold <sds@HIDDEN>, 7784 <at> debbugs.gnu.org
> Date: Wed, 05 Jan 2011 15:24:26 +0100
>=20
> One thing I noticed while experimenting with file-executable-p is t=
hat
> it returns false for files with extensions listed in PATHEXT. For
> instance, .JS is listed on one machine's PATHEXT but, after creatin=
g
> foo.js, (file-executable-p "foo.js") returns nil.
>=20
> As those files are directly executable from the shell, maybe Emacs
> should recognize them as executables as well?

Patches for supporting PATHEXT are most welcome, TIA.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7784; Package emacs. Full text available.

Message received at 7784 <at> debbugs.gnu.org:


Received: (at 7784) by debbugs.gnu.org; 5 Jan 2011 16:17:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 05 11:17:18 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PaW33-0005L0-U2
	for submit <at> debbugs.gnu.org; Wed, 05 Jan 2011 11:17:18 -0500
Received: from mtaout22.012.net.il ([80.179.55.172])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <eliz@HIDDEN>) id 1PaW32-0005Kp-1k
	for 7784 <at> debbugs.gnu.org; Wed, 05 Jan 2011 11:17:16 -0500
Received: from conversion-daemon.a-mtaout22.012.net.il by
	a-mtaout22.012.net.il (HyperSendmail v2007.08) id
	<0LEK00E0040AQO00@HIDDEN> for
	7784 <at> debbugs.gnu.org; Wed, 05 Jan 2011 18:24:25 +0200 (IST)
Received: from HOME-C4E4A596F7 ([77.127.127.157]) by a-mtaout22.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0LEK00D255KLDUF0@HIDDEN>;
	Wed, 05 Jan 2011 18:24:22 +0200 (IST)
Date: Wed, 05 Jan 2011 18:24:24 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#7784: executable-find does not find scripts on woe32
In-reply-to: <AANLkTinufwfo3CABAD=KxzzH4tkpyQbzxspq4=cgL0EC@HIDDEN>
To: Sam Steingold <sds@HIDDEN>
Message-id: <83wrmjmi87.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-transfer-encoding: QUOTED-PRINTABLE
X-012-Sender: halo1@HIDDEN
References: <AANLkTimt58CewrfPUSi5qYN-9Uttm7UJJ3QOooWi293h@HIDDEN>
	<878vz0173n.fsf@HIDDEN>
	<AANLkTim7Tu6tAP_+SkuD9_s27UnAz+0-6A2XYRw+A98B@HIDDEN>
	<E1PaRVY-0004ZI-CK@HIDDEN>
	<AANLkTinufwfo3CABAD=KxzzH4tkpyQbzxspq4=cgL0EC@HIDDEN>
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 7784
Cc: ofv@HIDDEN, 7784 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.0 (--)

> Date: Wed, 5 Jan 2011 09:40:06 -0500
> From: Sam Steingold <sds@HIDDEN>
> Cc: ofv@HIDDEN, 7784 <at> debbugs.gnu.org
>=20
> On Wed, Jan 5, 2011 at 6:26 AM, Eli Zaretskii <eliz@HIDDEN> wrote:
> >> Date: Tue, 4 Jan 2011 23:05:16 -0500
> >> From: Sam Steingold <sds@HIDDEN>
> >> Cc: 7784 <at> debbugs.gnu.org
> >>
> >
> > Could you please describe the specific use-case where this issue =
got
> > in your way? =C2=A0Because otherwise this discussion sounds a bit=
 academic
> > to me.
>=20
> when I try to use cygwin in native windows emacs, this works for
> binaries but not for scripts.
> e.g., using VC with cygwin-provided bzr and hg does not work.

Using any Emacs command that goes through shell-command-* should work
if you configure Emacs to use the Cygwin Bash as the shell.

Emacs commands that invoke programs directly (call/start-process etc.=
)
will not work with Unix shell scripts, but you can craft trivial *.ba=
t
files that invoke the script via the Cygwin Bash, and put them on
PATH.  E.g., to invoke Cygwin bzr, create a bzr.bat (untested) with
this single line:

 @X:\path\to\cygwin\bash $*

> there is no reason for this not to work except for the
> check_executable()'s return value.

Yes, there is a reason: the native Windows build of Emacs uses native
Windows APIs to run subprocesses, and those APIs don't know how to ru=
n
a Unix shell script.

Or maybe I misunderstand the details, in which case please tell more
regarding the Emacs functions which failed (those that eventually
called executable-find) and the relevant error message(s).

In general, though, if you want to use Cygwin tools, I suggest to use
a Cygwin build of Emacs.  Then everything should "just work".





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7784; Package emacs. Full text available.

Message received at 7784 <at> debbugs.gnu.org:


Received: (at 7784) by debbugs.gnu.org; 5 Jan 2011 14:32:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 05 09:32:57 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PaUQ4-00034Y-R8
	for submit <at> debbugs.gnu.org; Wed, 05 Jan 2011 09:32:57 -0500
Received: from mail-ey0-f172.google.com ([209.85.215.172])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <sam.steingold@HIDDEN>) id 1PaUQ3-00034N-03
	for 7784 <at> debbugs.gnu.org; Wed, 05 Jan 2011 09:32:55 -0500
Received: by eyd10 with SMTP id 10so6976592eyd.3
	for <7784 <at> debbugs.gnu.org>; Wed, 05 Jan 2011 06:40:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:sender:received
	:in-reply-to:references:date:x-google-sender-auth:message-id:subject
	:from:to:cc:content-type:content-transfer-encoding;
	bh=cgIugRm1u0CHEO+bYqX+OuDi/dS6r9XCJT9BNvtYOAY=;
	b=jyNCDiVQrFKGLyg4EfAiq6IQsuulxOCw7fCeUkkwiDN6ZrTz3+lQnhz7QhCQ4VaM9X
	JYT9Cfl3vLEIUlan/C4bGBuITFsRFCLigjoSN334cNOfuRj17iU+Wa9dg7wBWhxjkzNa
	JKI2Pk0wdbWiYacTC+KL85Rg1Qefh7pMLsCgY=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:cc:content-type
	:content-transfer-encoding;
	b=qkBWYtWv9s6FQ6OD45XvniMtePsuDFDxgh1dYGPFa3yG67oUvu8WJvhsmY0sV6CfJo
	UGaAJrEUYhiyXW7mO3WL2TeIfkQzlxoZJStTAr+VsMjPnXNXt6rhO/jOi/aM1mC8KkN0
	iC6ftK7EFSP4ngHIJfnH6KLRSwqY0eK29DGTQ=
MIME-Version: 1.0
Received: by 10.14.126.141 with SMTP id b13mr399820eei.47.1294238406244; Wed,
	05 Jan 2011 06:40:06 -0800 (PST)
Received: by 10.14.127.207 with HTTP; Wed, 5 Jan 2011 06:40:06 -0800 (PST)
In-Reply-To: <E1PaRVY-0004ZI-CK@HIDDEN>
References: <AANLkTimt58CewrfPUSi5qYN-9Uttm7UJJ3QOooWi293h@HIDDEN>
	<878vz0173n.fsf@HIDDEN>
	<AANLkTim7Tu6tAP_+SkuD9_s27UnAz+0-6A2XYRw+A98B@HIDDEN>
	<E1PaRVY-0004ZI-CK@HIDDEN>
Date: Wed, 5 Jan 2011 09:40:06 -0500
X-Google-Sender-Auth: CA6DZl0N9SIGOBCv1rj3fpX3BFg
Message-ID: <AANLkTinufwfo3CABAD=KxzzH4tkpyQbzxspq4=cgL0EC@HIDDEN>
Subject: Re: bug#7784: executable-find does not find scripts on woe32
From: Sam Steingold <sds@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -4.4 (----)
X-Debbugs-Envelope-To: 7784
Cc: ofv@HIDDEN, 7784 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.3 (----)

On Wed, Jan 5, 2011 at 6:26 AM, Eli Zaretskii <eliz@HIDDEN> wrote:
>> Date: Tue, 4 Jan 2011 23:05:16 -0500
>> From: Sam Steingold <sds@HIDDEN>
>> Cc: 7784 <at> debbugs.gnu.org
>>
>
> Could you please describe the specific use-case where this issue got
> in your way? =C2=A0Because otherwise this discussion sounds a bit academi=
c
> to me.

when I try to use cygwin in native windows emacs, this works for
binaries but not for scripts.
e.g., using VC with cygwin-provided bzr and hg does not work.
there is no reason for this not to work except for the
check_executable()'s return value.


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




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7784; Package emacs. Full text available.

Message received at 7784 <at> debbugs.gnu.org:


Received: (at 7784) by debbugs.gnu.org; 5 Jan 2011 14:17:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 05 09:17:20 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PaUAx-0002k1-Vm
	for submit <at> debbugs.gnu.org; Wed, 05 Jan 2011 09:17:20 -0500
Received: from impaqm3.telefonica.net ([213.4.138.19] helo=telefonica.net)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <oscarfv@HIDDEN>) id 1PaUAv-0002jn-2M
	for 7784 <at> debbugs.gnu.org; Wed, 05 Jan 2011 09:17:18 -0500
Received: from IMPmailhost2.adm.correo ([10.20.102.39])
	by IMPaqm3.telefonica.net with bizsmtp
	id rkBM1f00k0r0BT63PqQU8j; Wed, 05 Jan 2011 15:24:28 +0100
Received: from qcore ([88.24.214.212]) by IMPmailhost2.adm.correo with BIZ IMP
	id rqQS1f00b4bXV5U1iqQSXA; Wed, 05 Jan 2011 15:24:28 +0100
X-Brightmail-Tracker: AAAAAA==
X-original-sender: 981711563@HIDDEN
From: =?utf-8?Q?=C3=93scar_Fuentes?= <ofv@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#7784: executable-find does not find scripts on woe32
References: <AANLkTimt58CewrfPUSi5qYN-9Uttm7UJJ3QOooWi293h@HIDDEN>
	<878vz0173n.fsf@HIDDEN>
	<AANLkTim7Tu6tAP_+SkuD9_s27UnAz+0-6A2XYRw+A98B@HIDDEN>
	<E1PaRVY-0004ZI-CK@HIDDEN>
Date: Wed, 05 Jan 2011 15:24:26 +0100
In-Reply-To: <E1PaRVY-0004ZI-CK@HIDDEN> (Eli Zaretskii's message of
	"Wed, 05 Jan 2011 06:26:24 -0500")
Message-ID: <874o9n1l9h.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 7784
Cc: 7784 <at> debbugs.gnu.org, Sam Steingold <sds@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

Eli Zaretskii <eliz@HIDDEN> writes:

> How would this be useful?  Right now, it returns true for files that
> you can "execute" from the native Windows build of Emacs using native
> Windows shells and the cmd proxy that is part of the Emacs package.

One thing I noticed while experimenting with file-executable-p is that
it returns false for files with extensions listed in PATHEXT. For
instance, .JS is listed on one machine's PATHEXT but, after creating
foo.js, (file-executable-p "foo.js") returns nil.

As those files are directly executable from the shell, maybe Emacs
should recognize them as executables as well?

[snip]




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7784; Package emacs. Full text available.

Message received at 7784 <at> debbugs.gnu.org:


Received: (at 7784) by debbugs.gnu.org; 5 Jan 2011 11:23:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 05 06:23:11 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PaRSQ-0006lc-Ux
	for submit <at> debbugs.gnu.org; Wed, 05 Jan 2011 06:23:11 -0500
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <eliz@HIDDEN>) id 1PaRSP-0006lR-Dz
	for 7784 <at> debbugs.gnu.org; Wed, 05 Jan 2011 06:23:09 -0500
Received: from eliz by fencepost.gnu.org with local (Exim 4.69)
	(envelope-from <eliz@HIDDEN>)
	id 1PaRZI-0004oR-RG; Wed, 05 Jan 2011 06:30:16 -0500
From: Eli Zaretskii <eliz@HIDDEN>
To: =?UTF-8?Q?=C3=93scar?= Fuentes <ofv@HIDDEN>
In-reply-to: <878vz0173n.fsf@HIDDEN> (message from
	=?UTF-8?Q?=C3=93scar?= Fuentes on Wed, 05 Jan 2011 02:18:04 +0100)
Subject: Re: bug#7784: executable-find does not find scripts on woe32
References: <AANLkTimt58CewrfPUSi5qYN-9Uttm7UJJ3QOooWi293h@HIDDEN>
	<878vz0173n.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-Id: <E1PaRZI-0004oR-RG@HIDDEN>
Date: Wed, 05 Jan 2011 06:30:16 -0500
X-Spam-Score: -6.5 (------)
X-Debbugs-Envelope-To: 7784
Cc: 7784 <at> debbugs.gnu.org, sds@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.5 (------)

> From: Óscar Fuentes <ofv@HIDDEN>
> Date: Wed, 05 Jan 2011 02:18:04 +0100
> Cc: 7784 <at> debbugs.gnu.org
> 
> As you know, there is no 'executable' attribute on Windows. Cygwin fakes
> it.

Actually, there is an execute permission bit on Windows, but only on
NTFS; Cygwin uses that to "fake" Posix-style x bit.  But Emacs (the
native Windows build of it) does not use these NTFS features, and
frankly, I'm not sure it's worth the hassle (and there _is_ a very
real hassle, because mapping Posix rwx bits into NTFS ACLs is a
non-trivial job).

But I digress.  The real question in this bug report is why did the
OP need a Python script to appear as executable to Emacs.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7784; Package emacs. Full text available.

Message received at 7784 <at> debbugs.gnu.org:


Received: (at 7784) by debbugs.gnu.org; 5 Jan 2011 11:19:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 05 06:19:18 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PaROg-0006gY-Nf
	for submit <at> debbugs.gnu.org; Wed, 05 Jan 2011 06:19:18 -0500
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <eliz@HIDDEN>) id 1PaROe-0006gL-LA
	for 7784 <at> debbugs.gnu.org; Wed, 05 Jan 2011 06:19:17 -0500
Received: from eliz by fencepost.gnu.org with local (Exim 4.69)
	(envelope-from <eliz@HIDDEN>)
	id 1PaRVY-0004ZI-CK; Wed, 05 Jan 2011 06:26:24 -0500
From: Eli Zaretskii <eliz@HIDDEN>
To: Sam Steingold <sds@HIDDEN>
In-reply-to: <AANLkTim7Tu6tAP_+SkuD9_s27UnAz+0-6A2XYRw+A98B@HIDDEN>
	(message from Sam Steingold on Tue, 4 Jan 2011 23:05:16 -0500)
Subject: Re: bug#7784: executable-find does not find scripts on woe32
References: <AANLkTimt58CewrfPUSi5qYN-9Uttm7UJJ3QOooWi293h@HIDDEN>
	<878vz0173n.fsf@HIDDEN>
	<AANLkTim7Tu6tAP_+SkuD9_s27UnAz+0-6A2XYRw+A98B@HIDDEN>
Message-Id: <E1PaRVY-0004ZI-CK@HIDDEN>
Date: Wed, 05 Jan 2011 06:26:24 -0500
X-Spam-Score: -6.5 (------)
X-Debbugs-Envelope-To: 7784
Cc: ofv@HIDDEN, 7784 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.5 (------)

> Date: Tue, 4 Jan 2011 23:05:16 -0500
> From: Sam Steingold <sds@HIDDEN>
> Cc: 7784 <at> debbugs.gnu.org
> 
> check_executable() should return true for all arguments.

How would this be useful?  Right now, it returns true for files that
you can "execute" from the native Windows build of Emacs using native
Windows shells and the cmd proxy that is part of the Emacs package.
Returning true for every file will give gobs of false positives,
because most files on Windows are not executable, not even by Cygwin
wizardry.

Could you please describe the specific use-case where this issue got
in your way?  Because otherwise this discussion sounds a bit academic
to me.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7784; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 Jan 2011 07:07:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 05 02:07:56 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PaNTQ-0001Oq-8e
	for submit <at> debbugs.gnu.org; Wed, 05 Jan 2011 02:07:56 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jasonrumney@HIDDEN>) id 1PaNTO-0001Oe-Dr
	for submit <at> debbugs.gnu.org; Wed, 05 Jan 2011 02:07:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jasonrumney@HIDDEN>) id 1PaNaK-0004dU-T7
	for submit <at> debbugs.gnu.org; Wed, 05 Jan 2011 02:15:05 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW, RFC_ABUSE_POST, T_DKIM_INVALID,
	T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:33047)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jasonrumney@HIDDEN>) id 1PaNaK-0004dQ-R4
	for submit <at> debbugs.gnu.org; Wed, 05 Jan 2011 02:15:04 -0500
Received: from [140.186.70.92] (port=48312 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PaNaJ-00018F-FJ
	for bug-gnu-emacs@HIDDEN; Wed, 05 Jan 2011 02:15:04 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jasonrumney@HIDDEN>) id 1PaNaI-0004d6-Hp
	for bug-gnu-emacs@HIDDEN; Wed, 05 Jan 2011 02:15:03 -0500
Received: from mail-px0-f169.google.com ([209.85.212.169]:51186)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jasonrumney@HIDDEN>) id 1PaNaI-0004cL-A8
	for bug-gnu-emacs@HIDDEN; Wed, 05 Jan 2011 02:15:02 -0500
Received: by pxi12 with SMTP id 12so3800231pxi.0
	for <bug-gnu-emacs@HIDDEN>; Tue, 04 Jan 2011 23:15:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:sender:message-id:date:from
	:user-agent:mime-version:to:subject:references:in-reply-to
	:content-type:content-transfer-encoding;
	bh=bQkf0xkgjcAA4SmgxTUeZyZd2oIe6/sW7jKIv9E7YMc=;
	b=QhQM5HeZiGSJX0OTWxNQ33l1p1xtg2ENX3WQKGdo83N+L7YoC9KUtXyI5cYYCJzopv
	w7J/1DRpN8aLBjaru7y4IAGhEQ7W1A05O4vVydA5v2RO5qQOCemD8PAqp0U86xlZaDze
	OnFcLFPsqet5YSA54eKfwefujVQtUJ8joytVE=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=sender:message-id:date:from:user-agent:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	b=ICUUmMp2S8Yd1ZR2ltYbR4pV8NkkZCOawfHAcaCx4z71XLoGpm3i83tbjdr390VQCi
	8h54OnG1vxX9nJovjdwaxSlBfmS9IJpDsCHmpyqOwhJzphGrZ+ySh5sF/m2IePha+Frm
	/yYjLTwHY+3wLsyi/LmNKuK/ON1VNSZkAVD+A=
Received: by 10.142.131.21 with SMTP id e21mr15003518wfd.228.1294211700992;
	Tue, 04 Jan 2011 23:15:00 -0800 (PST)
Received: from [10.1.1.55] ([61.4.103.130])
	by mx.google.com with ESMTPS id b11sm31976792wff.9.2011.01.04.23.14.59
	(version=SSLv3 cipher=RC4-MD5); Tue, 04 Jan 2011 23:15:00 -0800 (PST)
Message-ID: <4D241A68.10406@HIDDEN>
Date: Wed, 05 Jan 2011 15:14:48 +0800
From: Jason Rumney <jasonr@HIDDEN>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1
MIME-Version: 1.0
To: bug-gnu-emacs@HIDDEN
Subject: Re: bug#7784: executable-find does not find scripts on woe32
References: <AANLkTimt58CewrfPUSi5qYN-9Uttm7UJJ3QOooWi293h@HIDDEN>
In-Reply-To: <AANLkTimt58CewrfPUSi5qYN-9Uttm7UJJ3QOooWi293h@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Spam-Score: -4.6 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.7 (----)

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.






Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7784; Package emacs. Full text available.

Message received at 7784 <at> debbugs.gnu.org:


Received: (at 7784) by debbugs.gnu.org; 5 Jan 2011 03:58:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 04 22:58:09 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PaKVl-0005s3-DX
	for submit <at> debbugs.gnu.org; Tue, 04 Jan 2011 22:58:09 -0500
Received: from mail-ew0-f44.google.com ([209.85.215.44])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <sam.steingold@HIDDEN>) id 1PaKVj-0005rq-6v
	for 7784 <at> debbugs.gnu.org; Tue, 04 Jan 2011 22:58:07 -0500
Received: by ewy8 with SMTP id 8so7089064ewy.3
	for <7784 <at> debbugs.gnu.org>; Tue, 04 Jan 2011 20:05:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:sender:received
	:in-reply-to:references:date:x-google-sender-auth:message-id:subject
	:from:to:cc:content-type:content-transfer-encoding;
	bh=2LBviDdT302hv8lBZSQJ6I56i9ymyAe6bT6vqjd36r0=;
	b=HC/tn5Oa83Ux5VKIHpG1X4tMylu8I3KruEGvykcKs2pSoFzgWwaTI/gk0vFBFnXolu
	SoqpIlsp8hPOZmYgXffH5tA1cL/OmKnYmUonQVN4CN1N8YK4MPKvbSxMPM6UjJENVNg+
	3FaWARB+irMlaKCnQoZOcL+eUoD3Bx3iCg8NE=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:cc:content-type
	:content-transfer-encoding;
	b=aRF40DdAU64D7+cdwnJoUf4yUG3SgVr/p7GHcLhfk73ccB5HVJQSdbcUpXwLjLoS1W
	06vSvL1DdxdHxsgog+nCqC1C5bVMn8QYbds0MwjIXEZS3YREmW7/83aVsUifZ8fE8yIw
	NQ+xv/6yJMZAgc9XnYr/9L20peD4baP5OyZH4=
MIME-Version: 1.0
Received: by 10.14.119.196 with SMTP id n44mr69202eeh.33.1294200316496; Tue,
	04 Jan 2011 20:05:16 -0800 (PST)
Received: by 10.14.127.207 with HTTP; Tue, 4 Jan 2011 20:05:16 -0800 (PST)
In-Reply-To: <878vz0173n.fsf@HIDDEN>
References: <AANLkTimt58CewrfPUSi5qYN-9Uttm7UJJ3QOooWi293h@HIDDEN>
	<878vz0173n.fsf@HIDDEN>
Date: Tue, 4 Jan 2011 23:05:16 -0500
X-Google-Sender-Auth: MuKKapIWKRSc9ud5Q2djk7ES3aw
Message-ID: <AANLkTim7Tu6tAP_+SkuD9_s27UnAz+0-6A2XYRw+A98B@HIDDEN>
Subject: Re: bug#7784: executable-find does not find scripts on woe32
From: Sam Steingold <sds@HIDDEN>
To: =?UTF-8?Q?=C3=93scar_Fuentes?= <ofv@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -4.8 (----)
X-Debbugs-Envelope-To: 7784
Cc: 7784 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.5 (----)

On Tue, Jan 4, 2011 at 8:18 PM, =C3=93scar Fuentes <ofv@HIDDEN> wrote:
> Sam Steingold <sds@HIDDEN> writes:
>
>> (file-executable-p "c:/gnu/cygwin/bin/bzr")
>> =3D=3D> 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.



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




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7784; Package emacs. Full text available.

Message received at 7784 <at> debbugs.gnu.org:


Received: (at 7784) by debbugs.gnu.org; 5 Jan 2011 01:10:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 04 20:10:57 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PaHtx-0002OC-3E
	for submit <at> debbugs.gnu.org; Tue, 04 Jan 2011 20:10:57 -0500
Received: from impaqm4.telefonica.net ([213.4.138.20] helo=telefonica.net)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <oscarfv@HIDDEN>) id 1PaHtw-0002O1-7b
	for 7784 <at> debbugs.gnu.org; Tue, 04 Jan 2011 20:10:56 -0500
Received: from IMPmailhost2.adm.correo ([10.20.102.39])
	by IMPaqm4.telefonica.net with bizsmtp
	id rdFU1f00Q0r0BT63QdJ6ZL; Wed, 05 Jan 2011 02:18:06 +0100
Received: from qcore ([88.24.214.212]) by IMPmailhost2.adm.correo with BIZ IMP
	id rdJ41f00K4bXV5U1idJ5VH; Wed, 05 Jan 2011 02:18:06 +0100
X-Brightmail-Tracker: AAAAAA==
X-original-sender: 981711563@HIDDEN
From: =?utf-8?Q?=C3=93scar_Fuentes?= <ofv@HIDDEN>
To: Sam Steingold <sds@HIDDEN>
Subject: Re: bug#7784: executable-find does not find scripts on woe32
References: <AANLkTimt58CewrfPUSi5qYN-9Uttm7UJJ3QOooWi293h@HIDDEN>
Date: Wed, 05 Jan 2011 02:18:04 +0100
In-Reply-To: <AANLkTimt58CewrfPUSi5qYN-9Uttm7UJJ3QOooWi293h@HIDDEN>
	(Sam Steingold's message of "Tue, 4 Jan 2011 18:44:16 -0500")
Message-ID: <878vz0173n.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 7784
Cc: 7784 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

Sam Steingold <sds@HIDDEN> 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.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7784; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Jan 2011 23:37:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 04 18:37:15 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PaGRG-0000Oz-S0
	for submit <at> debbugs.gnu.org; Tue, 04 Jan 2011 18:37:15 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <sam.steingold@HIDDEN>) id 1PaGRD-0000Om-Hl
	for submit <at> debbugs.gnu.org; Tue, 04 Jan 2011 18:37:12 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sam.steingold@HIDDEN>) id 1PaGY8-0007ZD-VG
	for submit <at> debbugs.gnu.org; Tue, 04 Jan 2011 18:44:21 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW, RFC_ABUSE_POST, T_DKIM_INVALID,
	T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:34883)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sam.steingold@HIDDEN>) id 1PaGY8-0007Z2-T7
	for submit <at> debbugs.gnu.org; Tue, 04 Jan 2011 18:44:20 -0500
Received: from [140.186.70.92] (port=38961 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PaGY7-0005bZ-H2
	for bug-gnu-emacs@HIDDEN; Tue, 04 Jan 2011 18:44:20 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sam.steingold@HIDDEN>) id 1PaGY6-0007Xv-Cl
	for bug-gnu-emacs@HIDDEN; Tue, 04 Jan 2011 18:44:19 -0500
Received: from mail-ey0-f169.google.com ([209.85.215.169]:45381)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sam.steingold@HIDDEN>) id 1PaGY6-0007WM-8T
	for bug-gnu-emacs@HIDDEN; Tue, 04 Jan 2011 18:44:18 -0500
Received: by eyh6 with SMTP id 6so3453130eyh.0
	for <bug-gnu-emacs@HIDDEN>; Tue, 04 Jan 2011 15:44:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:sender:received:date
	:x-google-sender-auth:message-id:subject:from:to:content-type;
	bh=4FbaiWVeU1i1kbdEMW/5IX0iKJUVDTbVV8ZBDL20ahU=;
	b=ubsxJ9QdcuLwM/jV6qiNn0AOolbwt6gJQt8OwyP+usyfQCjTGKH7DRMttXszofaHab
	Ngcsun3ztVenrqysPk4FXmCV/5lOpY/xRhT1WUlXNMJXIoG84XoBHahj3zfA02eP6lnf
	ukF/gMFTLtWc8V3tLhPiYZjI9EvZAKbYcWGao=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:sender:date:x-google-sender-auth:message-id:subject
	:from:to:content-type;
	b=srAP3EXmKFspVnR2BRAXDWYT8xS9sWKqiYwMqCCGMDfUcNjofvPACNXrH5JwlxLYUI
	F9R3YgBfOplfP3PB9Iou57Gxqlp8tT2srDZKQIvcYft8X92Sr5w5+QROeLAD1DfDPemP
	/vkrGIr6fD+UP2dM8T5bVigrURYjvoR+Ys3tk=
MIME-Version: 1.0
Received: by 10.14.16.164 with SMTP id h36mr7414869eeh.37.1294184656173; Tue,
	04 Jan 2011 15:44:16 -0800 (PST)
Received: by 10.14.127.207 with HTTP; Tue, 4 Jan 2011 15:44:16 -0800 (PST)
Date: Tue, 4 Jan 2011 18:44:16 -0500
X-Google-Sender-Auth: FR8b_L3Tj7X6OQvRHlqQQuIKffE
Message-ID: <AANLkTimt58CewrfPUSi5qYN-9Uttm7UJJ3QOooWi293h@HIDDEN>
Subject: executable-find does not find scripts on woe32
From: Sam Steingold <sds@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Spam-Score: -5.9 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.9 (-----)

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.


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




Acknowledgement sent to Sam Steingold <sds@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7784; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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