changeset 88051:a67ed67d274a

* net/tramp.el (tramp-handle-shell-command): Use "/bin/sh -c" for the command.
author Michael Albinus <michael.albinus@gmx.de>
date Mon, 28 Jan 2008 21:24:48 +0000
parents 449ffc76e463
children 80ed73017af4
files lisp/net/tramp.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/net/tramp.el	Mon Jan 28 19:05:13 2008 +0000
+++ b/lisp/net/tramp.el	Mon Jan 28 21:24:48 2008 +0000
@@ -3781,7 +3781,9 @@
   (command &optional output-buffer error-buffer)
   "Like `shell-command' for Tramp files."
   (let* ((asynchronous (string-match "[ \t]*&[ \t]*\\'" command))
-	 (args (split-string (substring command 0 asynchronous) " "))
+	 ;; We cannot use `shell-file-name' and `shell-command-switch',
+	 ;; they are variables of the local host.
+	 (args (list "/bin/sh" "-c" (substring command 0 asynchronous)))
 	 (output-buffer
 	  (cond
 	   ((bufferp output-buffer) output-buffer)