]> git.eshelyaron.com Git - emacs.git/commitdiff
(start-process-shell-command): Don't use `exec'--
authorRichard M. Stallman <rms@gnu.org>
Sat, 19 Nov 1994 14:06:09 +0000 (14:06 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 19 Nov 1994 14:06:09 +0000 (14:06 +0000)
run the command in a child process.

lisp/subr.el

index 959be2580c42a2a663cdac5d9a8cb0a1bd0a4fb0..6523e48bdb44c01dabc3255b0900f7cf275b9e0a 100644 (file)
@@ -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."