From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: shell-file-name cmdproxy and shell-command-switch -c Date: Wed, 20 Dec 2006 01:52:13 -0500 Message-ID: References: <45888455.6080207@student.lu.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: dough.gmane.org X-Trace: sea.gmane.org 1166597557 21057 80.91.229.10 (20 Dec 2006 06:52:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Dec 2006 06:52:37 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 20 07:52:36 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GwvJT-0003f3-LG for ged-emacs-devel@m.gmane.org; Wed, 20 Dec 2006 07:52:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GwvJS-0001tS-Op for ged-emacs-devel@m.gmane.org; Wed, 20 Dec 2006 01:52:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GwvJH-0001px-2N for emacs-devel@gnu.org; Wed, 20 Dec 2006 01:52:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GwvJG-0001oT-3A for emacs-devel@gnu.org; Wed, 20 Dec 2006 01:52:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GwvJF-0001o6-UT for emacs-devel@gnu.org; Wed, 20 Dec 2006 01:52:14 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GwvJF-0006rK-LN for emacs-devel@gnu.org; Wed, 20 Dec 2006 01:52:13 -0500 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1GwvJF-00089X-9i; Wed, 20 Dec 2006 01:52:13 -0500 Original-To: Lennart Borgman In-reply-to: <45888455.6080207@student.lu.se> (message from Lennart Borgman on Wed, 20 Dec 2006 01:31:17 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63979 Archived-At: > Date: Wed, 20 Dec 2006 01:31:17 +0100 > From: Lennart Borgman > > I see in ediff-patch-file-internal that shell-file-name is cmdproxy and > shell-command-switch is -c. cmd.exe wants /c. Is there some magic in > cmdproxy that translates -c to /c or is this a bug? Actually, dealing with -c is the main reason why cmdproxy was originally written. From the commentary near the beginning of cmdproxy.c: The main function is simply to process the "-c string" option in the way /bin/sh does, since the standard Windows command shells use the convention that everything after "/c" (the Windows equivalent of "-c") is the input string. So this is not a bug, it's a feature meant to avoid ugly system-dependent code anywhere where a shell command is invoked by Emacs.