From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#7784: executable-find does not find scripts on woe32 Date: Wed, 05 Jan 2011 18:24:24 +0200 Message-ID: <83wrmjmi87.fsf@gnu.org> References: <878vz0173n.fsf@telefonica.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1294246450 7337 80.91.229.12 (5 Jan 2011 16:54:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 Jan 2011 16:54:10 +0000 (UTC) Cc: ofv@wanadoo.es, 7784@debbugs.gnu.org To: Sam Steingold Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 05 17:54:05 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PaWce-0000yo-M6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Jan 2011 17:54:05 +0100 Original-Received: from localhost ([127.0.0.1]:51912 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PaWce-0002AL-5t for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Jan 2011 11:54:04 -0500 Original-Received: from [140.186.70.92] (port=51686 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PaWcV-00028e-7L for bug-gnu-emacs@gnu.org; Wed, 05 Jan 2011 11:53:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PaWcT-0007GH-Ow for bug-gnu-emacs@gnu.org; Wed, 05 Jan 2011 11:53:55 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PaWcT-0007G6-NG for bug-gnu-emacs@gnu.org; Wed, 05 Jan 2011 11:53:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PaW3m-0005Lx-EZ; Wed, 05 Jan 2011 11:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Jan 2011 16:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7784 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7784-submit@debbugs.gnu.org id=B7784.129424423820525 (code B ref 7784); Wed, 05 Jan 2011 16:18:02 +0000 Original-Received: (at 7784) by debbugs.gnu.org; 5 Jan 2011 16:17:18 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaW33-0005L0-U2 for submit@debbugs.gnu.org; Wed, 05 Jan 2011 11:17:18 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaW32-0005Kp-1k for 7784@debbugs.gnu.org; Wed, 05 Jan 2011 11:17:16 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LEK00E0040AQO00@a-mtaout22.012.net.il> for 7784@debbugs.gnu.org; Wed, 05 Jan 2011 18:24:25 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.127.157]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LEK00D255KLDUF0@a-mtaout22.012.net.il>; Wed, 05 Jan 2011 18:24:22 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 05 Jan 2011 11:18:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43104 Archived-At: > Date: Wed, 5 Jan 2011 09:40:06 -0500 > From: Sam Steingold > Cc: ofv@wanadoo.es, 7784@debbugs.gnu.org >=20 > On Wed, Jan 5, 2011 at 6:26 AM, Eli Zaretskii wrote: > >> Date: Tue, 4 Jan 2011 23:05:16 -0500 > >> From: Sam Steingold > >> Cc: 7784@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".