From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivar Rummelhoff Newsgroups: gmane.emacs.bugs Subject: bug#8541: start-process fails when both the program path and an argument contain spaces Date: Sun, 24 Apr 2011 12:01:17 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1303670697 19498 80.91.229.12 (24 Apr 2011 18:44:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 24 Apr 2011 18:44:57 +0000 (UTC) To: 8541@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 24 20:44:52 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QE4IY-0006zI-C4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Apr 2011 20:44:46 +0200 Original-Received: from localhost ([::1]:56066 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QE4IX-0004Zi-GV for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Apr 2011 14:44:45 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDwh2-00044F-CX for bug-gnu-emacs@gnu.org; Sun, 24 Apr 2011 06:37:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QDwh0-0000M5-Vl for bug-gnu-emacs@gnu.org; Sun, 24 Apr 2011 06:37:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42803) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDwh0-0000Lx-UJ for bug-gnu-emacs@gnu.org; Sun, 24 Apr 2011 06:37:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QDwUx-0007Ma-2F; Sun, 24 Apr 2011 06:25:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivar Rummelhoff Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Apr 2011 10:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8541 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.130364067528261 (code B ref -1); Sun, 24 Apr 2011 10:25:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Apr 2011 10:24:35 +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 1QDwUU-0007Lm-Jw for submit@debbugs.gnu.org; Sun, 24 Apr 2011 06:24:35 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QDw87-0006rX-II for submit@debbugs.gnu.org; Sun, 24 Apr 2011 06:01:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QDw81-0003Zi-Ds for submit@debbugs.gnu.org; Sun, 24 Apr 2011 06:01:22 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:43246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDw81-0003Ze-CU for submit@debbugs.gnu.org; Sun, 24 Apr 2011 06:01:21 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDw80-00026H-0T for bug-gnu-emacs@gnu.org; Sun, 24 Apr 2011 06:01:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QDw7z-0003ZS-1z for bug-gnu-emacs@gnu.org; Sun, 24 Apr 2011 06:01:19 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:56638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDw7y-0003ZO-Nd for bug-gnu-emacs@gnu.org; Sun, 24 Apr 2011 06:01:18 -0400 Original-Received: by fxm18 with SMTP id 18so1172402fxm.0 for ; Sun, 24 Apr 2011 03:01:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=jQeCJukecdWVxiO4V+ZXtLlxBZQRHbP+WdWdnvKN1wU=; b=aaBs8ccMFTQdHUdiJ+Ey2UqnO+kw0kCZSXS2RNimQSIYl3kc5aZCfozqLXeMz0A4iw Svc7InYj48k6T9smMb6YjFWzaOfs1FN8bfckUsQYcT/V7zHJdNXEDbyICcQZTLOTZiT1 P5OhIufgi1jlrcQBI1clQRuLLXTDul2UsI2qs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=hHs2bMR2P/Jneh+7KccELqKg8G8IG5XUniNp4kh0MLUl1EUFx8KLD1YgnMoXX0VTLD ztEiJTU3gbywOkhAGGd8O7x1p0/bhlZNiNCURIdsuFRS7KGVYSVunDojNe4Z6bXmrByO tRJNItd0F8qmpaudb87BuJk7BJo75/dRpN46s= Original-Received: by 10.223.97.219 with SMTP id m27mr3153804fan.81.1303639277139; Sun, 24 Apr 2011 03:01:17 -0700 (PDT) Original-Received: by 10.223.83.137 with HTTP; Sun, 24 Apr 2011 03:01:17 -0700 (PDT) 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, 3) X-Mailman-Approved-At: Sun, 24 Apr 2011 06:24:33 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 24 Apr 2011 06:25:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Sun, 24 Apr 2011 14:44:43 -0400 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45964 Archived-At: 1. Trying to execute (start-process "name" "buffer" "D:\\tmp\\xxx yyy\\foo.bat" "yada yada") writes the following to "buffer": 'd:\tmp\xxx' is not recognized as an internal or external command, operable program or batch file. Process name exited abnormally with code 1 Emacs version: GNU Emacs 23.3.1 (i386-mingw-nt6.1.7601) of 2011-03-10 on 3249CTO 2. If space is avoided in either the program path or the argument, as in (start-process "name" "buffer" "D:\\tmp\\foo.bat" "yada yada") or (start-process "name" "buffer" "D:\\tmp\\xxx yyy\\foo.bat" "yada-yada") then everything works well. 3. The same problem occurs when I give `start-process' the program name only (instead of the full path) as long as the full path to the program contains spaces (and one of the arguments contains spaces). 4. Quoting the program path or the argument (with " or \) does not help. If quote the program path, I get "no such file or directory"; and quoting the argument has no effect as long as there is still a space character "in there". (Besides, it seems any quoting of the arguments is passed on to the program.) 5. There seems to be no work-around for this in emacs lisp. Best Regards, Ivar Rummelhoff