unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: shell-file-name cmdproxy and shell-command-switch -c
Date: Wed, 20 Dec 2006 01:52:13 -0500	[thread overview]
Message-ID: <E1GwvJF-00089X-9i@fencepost.gnu.org> (raw)
In-Reply-To: <45888455.6080207@student.lu.se> (message from Lennart Borgman on Wed, 20 Dec 2006 01:31:17 +0100)

> Date: Wed, 20 Dec 2006 01:31:17 +0100
> From: Lennart Borgman <lennart.borgman.073@student.lu.se>
> 
> 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.

      reply	other threads:[~2006-12-20  6:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-20  0:31 shell-file-name cmdproxy and shell-command-switch -c Lennart Borgman
2006-12-20  6:52 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1GwvJF-00089X-9i@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).