From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Vezie Newsgroups: gmane.emacs.bugs Subject: possible bug in process.c? Date: Wed, 14 Jan 2004 13:52:44 -0500 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20040114185244.GA17851@mlvezie.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1074140054 23959 80.91.224.253 (15 Jan 2004 04:14:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Jan 2004 04:14:14 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 15 05:14:10 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AgytW-0007C9-00 for ; Thu, 15 Jan 2004 05:14:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AgvHx-0002dW-Fh for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Jan 2004 19:23:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Agu76-0005oV-RN for bug-gnu-emacs@gnu.org; Wed, 14 Jan 2004 18:07:52 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AgsoN-0007zs-Pc for bug-gnu-emacs@gnu.org; Wed, 14 Jan 2004 16:44:59 -0500 Original-Received: from [129.44.191.93] (helo=mlvezie.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AgqA7-0004Q2-5E for bug-gnu-emacs@gnu.org; Wed, 14 Jan 2004 13:54:43 -0500 Original-Received: from mlvezie.org (mlv@localhost [127.0.0.1]) by mlvezie.org (8.12.3/8.12.3/Debian-6.6) with ESMTP id i0EIqjnp017912 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 14 Jan 2004 13:52:45 -0500 Original-Received: (from mlv@localhost) by mlvezie.org (8.12.3/8.12.3/Debian-6.6) id i0EIqiXG017910; Wed, 14 Jan 2004 13:52:44 -0500 Original-To: bug-gnu-emacs@gnu.org Content-Disposition: inline User-Agent: Mutt/1.3.28i X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:6565 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6565 In process.c, in DEFUN("start-process... Around line 1193 or so (in 21.3, although I've seen the same code in 20.7) is the following snippet of code: /* If program file name is not absolute, search our path for it */ if (!IS_DIRECTORY_SEP (XSTRING (program)->data[0]) && !(XSTRING (program)->size > 1 && IS_DEVICE_SEP (XSTRING (program)->data[1]))) { ... at which point it then processes a relative pathname file (looking through Vexec_path for the executable, etc). Maybe I'm reading this wrong (help me out if I am), but shouldn't that last line there read: && !IS_DEVICE_SEP (XSTRING (program)->data[1]))) note ^ Here's how I read it: If the first character is not a directory separator ('/' or '\\') and the string is longer than 1 and the second character is a device separator (':')... you're checking here if the string denotes a relative path. But if the second character is a ':', then it's something like: c:/fsf/emacs-21.3/bin/cmdproxy.exe which is an absolute path, and doesn't require looking through Vexec_path. In any case, I get an error preceeded by "Searching for program" when I set my SHELL environment variable to c:/fsf/emacs-21.3/bin/cmdproxy.exe (it should never search for the program in the path with an absolute path like that), and things work fine when I set my SHELL environment variable to simply cmdproxy.exe Michael