diff options
| author | Michael Albinus | 2008-01-28 21:25:26 +0000 |
|---|---|---|
| committer | Michael Albinus | 2008-01-28 21:25:26 +0000 |
| commit | b8bfcf96e8e78484cccade13fdb6a8a8697a66b9 (patch) | |
| tree | 897f32e11b3b4215c3390836112725fb437bad14 | |
| parent | ef264c42097f5317044f6a85f895588184c2dbdd (diff) | |
| download | emacs-b8bfcf96e8e78484cccade13fdb6a8a8697a66b9.tar.gz emacs-b8bfcf96e8e78484cccade13fdb6a8a8697a66b9.zip | |
* net/tramp.el (tramp-handle-shell-command): Use "/bin/sh -c" for
the command.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 4 |
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 @@ | |||
| 1 | 2008-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 | |||
| 1 | 2008-01-28 Vinicius Jose Latorre <viniciusjl@ig.com.br> | 6 | 2008-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) |