Vinh Nguyen <[email protected]> writes:
Hi Vinh,
>>> (require 'tramp)
>>> (setq tramp-default-method "ssh")
>>> ;; do C-x f, /usern...@server:~/
>>> (setcdr (assoc 'tramp-remote-sh (assoc "ssh" tramp-methods)) '("/bin/bash"))
>>
>> Have you set the last line *before* you have opened your files? The
>> comment indicates another order ...
>
> yea, i did. the comment is there to remind me how to edit files
> remotely that's all :)
>
>>> The above does not work. Appears to still be using /bin/sh. Any
>>> other suggestions?
>>
>> Could you, please, apply (setq tramp-verbose 6) and show the traces
>> after opening the connection? I would also like to see the value of
>> `tramp-methods'.
>
> Here is what's in *debug tramp/ssh ... *:
Could you, please, check, whether the following patch works (you still
need the recipe I gave you):
--8<---------------cut here---------------start------------->8---
*** /home/albinus/src/tramp/lisp/tramp.el.~2.800.~ 2010-06-11
16:48:11.000000000 +0200
--- /home/albinus/src/tramp/lisp/tramp.el 2010-06-18 14:36:43.377056139
+0200
***************
*** 4683,4689 ****
(let* ((asynchronous (string-match "[ \t]*&[ \t]*\\'" command))
;; 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)))
current-buffer-p
(output-buffer
(cond
--- 4683,4694 ----
(let* ((asynchronous (string-match "[ \t]*&[ \t]*\\'" command))
;; We cannot use `shell-file-name' and `shell-command-switch',
;; they are variables of the local host.
! (args (list
! (tramp-get-method-parameter
! (tramp-file-name-method
! (tramp-dissect-file-name default-directory))
! 'tramp-remote-sh)
! "-c" (substring command 0 asynchronous)))
current-buffer-p
(output-buffer
(cond
--8<---------------cut here---------------end--------------->8---
Best regards, Michael.
_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel