aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp.el4
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1e2dcf1e558..d467535a186 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-01-28 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp.el (tramp-handle-shell-command): Use "/bin/sh -c" for
4 the command.
5
12008-01-28 Vinicius Jose Latorre <viniciusjl@ig.com.br> 62008-01-28 Vinicius Jose Latorre <viniciusjl@ig.com.br>
2 7
3 * whitespace.el: Moved to obsolete dir. 8 * whitespace.el: Moved to obsolete dir.
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index b9e6a279644..eb68c8302aa 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -3781,7 +3781,9 @@ Lisp error raised when PROGRAM is nil is trapped also, returning 1."
3781 (command &optional output-buffer error-buffer) 3781 (command &optional output-buffer error-buffer)
3782 "Like `shell-command' for Tramp files." 3782 "Like `shell-command' for Tramp files."
3783 (let* ((asynchronous (string-match "[ \t]*&[ \t]*\\'" command)) 3783 (let* ((asynchronous (string-match "[ \t]*&[ \t]*\\'" command))
3784 (args (split-string (substring command 0 asynchronous) " ")) 3784 ;; We cannot use `shell-file-name' and `shell-command-switch',
3785 ;; they are variables of the local host.
3786 (args (list "/bin/sh" "-c" (substring command 0 asynchronous)))
3785 (output-buffer 3787 (output-buffer
3786 (cond 3788 (cond
3787 ((bufferp output-buffer) output-buffer) 3789 ((bufferp output-buffer) output-buffer)