tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: default remote shell in tramp


From: Michael Albinus
Subject: Re: default remote shell in tramp
Date: Fri, 18 Jun 2010 14:52:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Vinh Nguyen <address@hidden> writes:

Hi Vinh,

>>> (require 'tramp)
>>> (setq tramp-default-method "ssh")
>>> ;; do C-x f, /address@hidden:~/
>>> (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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]