From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#33016: 26.1; (make-process ...) doesn't signal an error, when executable given as absolute Windows path does not exist Date: Thu, 11 Oct 2018 17:22:22 +0300 Message-ID: <835zy8y34x.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1539267668 17171 195.159.176.226 (11 Oct 2018 14:21:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2018 14:21:08 +0000 (UTC) Cc: 33016@debbugs.gnu.org To: Klaus-Dieter Bauer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 11 16:21:03 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAbpn-0004MT-Kg for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Oct 2018 16:21:03 +0200 Original-Received: from localhost ([::1]:34804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAbrt-00071s-TH for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Oct 2018 10:23:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAbrm-00071L-6o for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 10:23:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAbri-00026f-5K for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 10:23:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41095) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAbri-00026a-13 for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 10:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gAbrh-0001f2-SY for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2018 10:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Oct 2018 14:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33016 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33016-submit@debbugs.gnu.org id=B33016.15392677576322 (code B ref 33016); Thu, 11 Oct 2018 14:23:01 +0000 Original-Received: (at 33016) by debbugs.gnu.org; 11 Oct 2018 14:22:37 +0000 Original-Received: from localhost ([127.0.0.1]:45347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAbrJ-0001du-CU for submit@debbugs.gnu.org; Thu, 11 Oct 2018 10:22:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAbrH-0001dh-LQ for 33016@debbugs.gnu.org; Thu, 11 Oct 2018 10:22:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAbr5-0001ZV-Sg for 33016@debbugs.gnu.org; Thu, 11 Oct 2018 10:22:28 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAbr5-0001Ye-1p; Thu, 11 Oct 2018 10:22:23 -0400 Original-Received: from [176.228.60.248] (port=3843 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gAbr3-0000QR-SY; Thu, 11 Oct 2018 10:22:22 -0400 In-reply-to: (message from Klaus-Dieter Bauer on Thu, 11 Oct 2018 14:55:27 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151120 Archived-At: > From: Klaus-Dieter Bauer > Date: Thu, 11 Oct 2018 14:55:27 +0200 > > Entering > > M-x eval-expression RET > (make-process :name "test" :command '("No Such Command")) > > will bring up the debugger with > > (file-missing "Searching for program" "No such file or directory" "nosuchcommand") > > However, entering > > M-x eval-expression RET > (make-process :name "test" :command '("c:/No Such Command")) > > will merely display in the echo-area message: > > eval: Spawning child process: Invalid argument > > I stumbled upon this when debugging a quick-and-dirty > script, that called a program by absolute path. When a new > version of the program changed the name of the executable > (tex2lyx2.3 -> tex2lyx), this issue occurred, and hindered > debugging the problem. > > The wording of the message might indicate a > Windows-specific issue. The error in the second case is Windows specific, but the inconsistency isn't: on Unix the second case "succeeds", in that it returns a process object without any error messages. The error message you see in the first case is because Emacs searches for the program along exec-path (because it is not an absolute file name). In the second case this search is not done, because the file name is already absolute. So I don't think this is a bug.