Mercurial > emacs
changeset 10025:3b058e13d177
(start-process-shell-command): Don't use `exec'--
run the command in a child process.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 19 Nov 1994 14:06:09 +0000 |
parents | d95a8d8ab0f4 |
children | 09392b4de856 |
files | lisp/subr.el |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/subr.el Sat Nov 19 14:03:23 1994 +0000 +++ b/lisp/subr.el Sat Nov 19 14:06:09 1994 +0000 @@ -853,12 +853,11 @@ (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."