Vinh Nguyen <[email protected]> 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
>> albi...@host:~$
>>
>> 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.

_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to