From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#18745: 24.3; MS Windows, `call-process-shell-command' fails on `shell-quote-argument'ed bat file with quoted args Date: Thu, 16 Oct 2014 17:30:57 -0400 Message-ID: References: <83ppds4ig5.fsf@gnu.org> <83oatc2bca.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1413495082 29887 80.91.229.3 (16 Oct 2014 21:31:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2014 21:31:22 +0000 (UTC) Cc: 18745@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 16 23:31:15 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xesde-0001SV-N3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Oct 2014 23:31:14 +0200 Original-Received: from localhost ([::1]:54086 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xesde-00083R-8D for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Oct 2014 17:31:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XesdX-00082q-3F for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2014 17:31:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XesdS-0002O4-9o for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2014 17:31:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XesdS-0002O0-6V for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2014 17:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XesdR-0003zv-KY for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2014 17:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Oct 2014 21:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18745 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18745-submit@debbugs.gnu.org id=B18745.141349506015361 (code B ref 18745); Thu, 16 Oct 2014 21:31:01 +0000 Original-Received: (at 18745) by debbugs.gnu.org; 16 Oct 2014 21:31:00 +0000 Original-Received: from localhost ([127.0.0.1]:46428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XesdQ-0003zg-1W for submit@debbugs.gnu.org; Thu, 16 Oct 2014 17:31:00 -0400 Original-Received: from mail-vc0-f170.google.com ([209.85.220.170]:62557) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XesdO-0003zY-6k for 18745@debbugs.gnu.org; Thu, 16 Oct 2014 17:30:58 -0400 Original-Received: by mail-vc0-f170.google.com with SMTP id hy10so3418319vcb.15 for <18745@debbugs.gnu.org>; Thu, 16 Oct 2014 14:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=mMan+6iVB265g2TG8BfDRef2xB2R4aParmRvrmE1VWc=; b=IWRY3k3gTrGGYVVv/UfVmc6KUo32UwNdHJ98Yd4wMW2yXyxiDqtpVvL47G9SGoJxVy 84uuhL4Z3h/O2FMEqK0PzJ7289MFBlxNnHPqYzzVNyDuk2osn03Zr+DYtcbUWauymkZv ZuOMYQIt7C3Wdq6dbO0gQgEEuFxHy7ZdGdwkSu2uGwQzzu6j7zuCl6cefGMhL/SQVw9q J9mapkWDOwuHY6qgz/ytjZMLBmihbxgJcgeoohaZg1gbL393rvcaGP6habQsg/lz5c1O Gbo6H7DVjHnIPHAiIRRnf8kjiqKJqdUR9JX4Mz3T9+wEj0UclRLOSWtxdHzzMruQOGEJ zDRw== X-Received: by 10.52.72.78 with SMTP id b14mr3306843vdv.55.1413495057612; Thu, 16 Oct 2014 14:30:57 -0700 (PDT) Original-Received: by 10.31.153.141 with HTTP; Thu, 16 Oct 2014 14:30:57 -0700 (PDT) In-Reply-To: <83oatc2bca.fsf@gnu.org> X-Google-Sender-Auth: lGPrKBDcVaTS8GsLveRpBjMekXQ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94653 On Thu, Oct 16, 2014 at 1:06 PM, Eli Zaretskii wrote: > GNU Make overcomes this by detecting these cases, and invoking > CreateProcess in a special way (NULL as the first argument), see the > function process_begin there, around line 710 of sub_proc.c in the GNU > Make sources. If you can come up with a way to do the same in Emacs, > by some suitable patch to cmdproxy.c, such a patch will be welcome > (assuming either the patch is small, or you will agree to sign legal > papers necessary for submitting substantial patches to FSF projects). I'll take a look (btw I have already signed for Emacs). > Failing that, I can suggest a workaround: use the short 8+3 alias of > the file name with whitespace. You can obtain the short alias of any > existing file's name by calling w32-short-filename. Then you won't > need to quote the batch file name. s/w32-short-filename/w32-short-file-name/ That works regardless if the program is a bat or exe which will make things simpler, thanks.