+2008-01-28 Michael Albinus <michael.albinus@gmx.de>
+
+ * net/tramp.el (tramp-handle-shell-command): Use "/bin/sh -c" for
+ the command.
+
2008-01-28 Vinicius Jose Latorre <viniciusjl@ig.com.br>
* whitespace.el: Moved to obsolete dir.
(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)