[Top][All Lists]
[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: |
Tue, 20 Jul 2010 14:48:49 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Vinh Nguyen <address@hidden> writes:
>> For some reason, that is not doing anything:
>>
>> (require 'tramp)
>>
>> (setcdr (assoc 'tramp-remote-sh (assoc "ssh" tramp-methods)) '("/bin/bash"))
>> (setcdr (assoc 'tramp-remote-sh (assoc "scp" tramp-methods)) '("/bin/bash"))
>> (setcdr (assoc 'tramp-remote-sh (assoc "scp1" tramp-methods))
>> '("/bin/bash"))
>> (setcdr (assoc 'tramp-remote-sh (assoc "scp1_old" tramp-methods))
>> '("/bin/bash"))
>> (setcdr (assoc 'tramp-remote-sh (assoc "scp2" tramp-methods))
>> '("/bin/bash"))
>> (setcdr (assoc 'tramp-remote-sh (assoc "scp2_old" tramp-methods))
>> '("/bin/bash"))
>> But even with that, when I type
>> M-x shell
>> and then echo $0
>> the response is /bin/sh not /bin/bash
>
> Same as before -- emacs hang and I needed to do C-g C-g. Following at
> the end of debug. I believe stuff after dollar might be from after
> C-g C-g.
>
> $
> 20:34:25.329031 tramp-maybe-open-connection (3) # Found remote shell
> prompt on `SERVER'
> 20:34:25.329366 tramp-send-command (6) # exec env ENV=''
> PROMPT_COMMAND='' PS1=\#\$\ PS2='' PS3='' /bin/bash
> 20:34:35.793861 tramp-accept-process-output (3) # Opening connection
> for SERVER using ssh...done
Sorry, but this doesn't tell me anything. Could you, please, start a
fresh Emacs, apply the patch above, set tramp-verbose to 10, and show
the *complete* debug buffer after the run? Then I could follow the
commands Tramp is sending.
Best regards, Michael.
- Re: default remote shell in tramp, Michael Albinus, 2010/07/12
- Re: default remote shell in tramp, Vinh Nguyen, 2010/07/19
- Re: default remote shell in tramp,
Michael Albinus <=
- Re: default remote shell in tramp, Vinh Nguyen, 2010/07/20
- Re: default remote shell in tramp, Michael Albinus, 2010/07/21
- Re: default remote shell in tramp, Vinh Nguyen, 2010/07/22
- Re: default remote shell in tramp, Michael Albinus, 2010/07/23
- Re: default remote shell in tramp, Vinh Nguyen, 2010/07/25
- Re: default remote shell in tramp, Michael Albinus, 2010/07/26
- Re: default remote shell in tramp, Vinh Nguyen, 2010/07/26
- Re: default remote shell in tramp, Michael Albinus, 2010/07/26