diff options
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 22 |
2 files changed, 21 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ab900c69a14..199c8243188 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2010-07-16 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp.el (tramp-handle-shell-command): Don't use hard-wired | ||
| 4 | "/bin/sh" but `tramp-remote-sh' from `tramp-methods'. | ||
| 5 | (tramp-find-shell): Simplify setting connection property. | ||
| 6 | (tramp-get-ls-command): Make test for "--color=never" stronger. | ||
| 7 | |||
| 1 | 2010-07-15 Simon South <ssouth@member.fsf.org> | 8 | 2010-07-15 Simon South <ssouth@member.fsf.org> |
| 2 | 9 | ||
| 3 | * progmodes/delphi.el (delphi-previous-indent-of): Indent case | 10 | * progmodes/delphi.el (delphi-previous-indent-of): Indent case |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 8e9ca34f16b..a231ef29880 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -4683,7 +4683,12 @@ Lisp error raised when PROGRAM is nil is trapped also, returning 1." | |||
| 4683 | (let* ((asynchronous (string-match "[ \t]*&[ \t]*\\'" command)) | 4683 | (let* ((asynchronous (string-match "[ \t]*&[ \t]*\\'" command)) |
| 4684 | ;; We cannot use `shell-file-name' and `shell-command-switch', | 4684 | ;; We cannot use `shell-file-name' and `shell-command-switch', |
| 4685 | ;; they are variables of the local host. | 4685 | ;; they are variables of the local host. |
| 4686 | (args (list "/bin/sh" "-c" (substring command 0 asynchronous))) | 4686 | (args (list |
| 4687 | (tramp-get-method-parameter | ||
| 4688 | (tramp-file-name-method | ||
| 4689 | (tramp-dissect-file-name default-directory)) | ||
| 4690 | 'tramp-remote-sh) | ||
| 4691 | "-c" (substring command 0 asynchronous))) | ||
| 4687 | current-buffer-p | 4692 | current-buffer-p |
| 4688 | (output-buffer | 4693 | (output-buffer |
| 4689 | (cond | 4694 | (cond |
| @@ -6619,12 +6624,10 @@ file exists and nonzero exit status otherwise." | |||
| 6619 | 6624 | ||
| 6620 | (t (tramp-message | 6625 | (t (tramp-message |
| 6621 | vec 5 "Remote `%s' groks tilde expansion, good" | 6626 | vec 5 "Remote `%s' groks tilde expansion, good" |
| 6622 | (tramp-get-method-parameter | 6627 | (tramp-set-connection-property |
| 6623 | (tramp-file-name-method vec) 'tramp-remote-sh)) | 6628 | vec "remote-shell" |
| 6624 | (tramp-set-connection-property | 6629 | (tramp-get-method-parameter |
| 6625 | vec "remote-shell" | 6630 | (tramp-file-name-method vec) 'tramp-remote-sh))))))))) |
| 6626 | (tramp-get-method-parameter | ||
| 6627 | (tramp-file-name-method vec) 'tramp-remote-sh)))))))) | ||
| 6628 | 6631 | ||
| 6629 | ;; ------------------------------------------------------------ | 6632 | ;; ------------------------------------------------------------ |
| 6630 | ;; -- Functions for establishing connection -- | 6633 | ;; -- Functions for establishing connection -- |
| @@ -8316,10 +8319,13 @@ necessary only. This function will be used in file name completion." | |||
| 8316 | ;; Check parameters. On busybox, "ls" output coloring is | 8319 | ;; Check parameters. On busybox, "ls" output coloring is |
| 8317 | ;; enabled by default sometimes. So we try to disable it | 8320 | ;; enabled by default sometimes. So we try to disable it |
| 8318 | ;; when possible. $LS_COLORING is not supported there. | 8321 | ;; when possible. $LS_COLORING is not supported there. |
| 8322 | ;; Some "ls" versions are sensible wrt the order of | ||
| 8323 | ;; arguments, they fail when "-al" is after the | ||
| 8324 | ;; "--color=never" argument (for example on FreeBSD). | ||
| 8319 | (when (zerop (tramp-send-command-and-check | 8325 | (when (zerop (tramp-send-command-and-check |
| 8320 | vec (format "%s -lnd /" result))) | 8326 | vec (format "%s -lnd /" result))) |
| 8321 | (when (zerop (tramp-send-command-and-check | 8327 | (when (zerop (tramp-send-command-and-check |
| 8322 | vec (format "%s --color=never /" result))) | 8328 | vec (format "%s --color=never -al /" result))) |
| 8323 | (setq result (concat result " --color=never"))) | 8329 | (setq result (concat result " --color=never"))) |
| 8324 | (throw 'ls-found result)) | 8330 | (throw 'ls-found result)) |
| 8325 | (setq dl (cdr dl)))))) | 8331 | (setq dl (cdr dl)))))) |