From b59f6d7a689c5a4bc703918aca0a67b1492aea32 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 19 Nov 1994 14:06:09 +0000 Subject: [PATCH] (start-process-shell-command): Don't use `exec'-- run the command in a child process. --- lisp/subr.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lisp/subr.el b/lisp/subr.el index 959be2580c4..6523e48bdb4 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -853,12 +853,11 @@ Wildcards and redirection are handled as usual in the shell." (cond ((eq system-type 'vax-vms) (apply 'start-process name buffer args)) - ((eq system-type 'windows-nt) - (start-process name buffer shell-file-name shell-command-switch - (mapconcat 'identity args " "))) + ;; We used to use `exec' to replace the shell with the command, + ;; but that failed to handle (...) and semicolon, etc. (t (start-process name buffer shell-file-name shell-command-switch - (concat "exec " (mapconcat 'identity args " ")))))) + (mapconcat 'identity args " "))))) (defmacro save-match-data (&rest body) "Execute the BODY forms, restoring the global value of the match data." -- 2.39.5