* shell-file-name cmdproxy and shell-command-switch -c
@ 2006-12-20 0:31 Lennart Borgman
2006-12-20 6:52 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Lennart Borgman @ 2006-12-20 0:31 UTC (permalink / raw)
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?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: shell-file-name cmdproxy and shell-command-switch -c
2006-12-20 0:31 shell-file-name cmdproxy and shell-command-switch -c Lennart Borgman
@ 2006-12-20 6:52 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2006-12-20 6:52 UTC (permalink / raw)
Cc: emacs-devel
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-20 6:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-20 0:31 shell-file-name cmdproxy and shell-command-switch -c Lennart Borgman
2006-12-20 6:52 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.