[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: Sat, 19 Jun 2010 12:44:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Vinh Nguyen <address@hidden> writes:

>> What do you mean with this? It should open a new bash shell, and show
>> you the prompt. Like this:
>> host:~> exec env ENV='' PROMPT_COMMAND='' PS1=\#\$\ PS2='' PS3='' /bin/bash
>> address@hidden:~$
>> Best regards, Michael.
> Yes, I was expecting that, but it didnt do so (I think).  Tried it on
> 2 different servers.  I don't think it open a new bash shell because
> entering 'exit' closes me out of the server.

That's OK. "exec" means "replace the running shell by the called
program", so it is OK that you exit directly from the opened bash.

I suspect, that you set your prompt in ~/.bashrc. You should check,
whether ~/.bashrc is handled by Tramp, for example by checking the used
$TERM. Something like this at then end of ~/.bashrc:

   [ "$TERM" = "dumb" ] && PS1='$ '

> Vinh

Best regards, Michael.

PS: I'll start a trip tonight, being almost offline for the next 2
weeks. If this proposal doesn't help, we must continue when I'll return.

reply via email to

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