diff lisp/w3/mm.el @ 32:e04119814345 r19-15b99

Import from CVS: tag r19-15b99
author cvs
date Mon, 13 Aug 2007 08:52:56 +0200
parents 441bb1e64a06
children c53a95d3c46d
line wrap: on
line diff
--- a/lisp/w3/mm.el	Mon Aug 13 08:52:30 2007 +0200
+++ b/lisp/w3/mm.el	Mon Aug 13 08:52:56 2007 +0200
@@ -728,7 +728,7 @@
       (eval test))
      (t
       (setq test (mm-unescape-mime-test test type-info)
-	    test (list "/bin/sh" nil nil nil "-c" test)
+	    test (list shell-file-name nil nil nil shell-command-switch test)
 	    status (apply 'call-process test))
       (= 0 status)))))
 
@@ -1042,9 +1042,9 @@
       (setq comp (concat (substring comp 0 (match-end 1)) fnam
 			 (substring comp (match-end 0) nil))
 	    usef t))
-    (call-process (or shell-file-name
-		      (getenv "ESHELL") (getenv "SHELL") "/bin/sh")
-		  nil (if usef nil buff) nil "-c" comp)
+    (call-process shell-file-name nil
+		  (if usef nil buff)
+		  nil shell-command-switch comp)
     (setq retval
 	  (concat
 	   (if typeit (concat "Content-type: " type "\r\n\r\n") "")