[Top][All Lists]

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

Re: How to let tramp be aware the virtualenv?

From: Zhongwei Yao
Subject: Re: How to let tramp be aware the virtualenv?
Date: Wed, 17 Jul 2019 18:47:05 +0800

Hi, Michael,
Thanks for your reply. But it does not work for me.

I try to set the remote-shell to /bin/bash, and from tramp log, there is:
  xx8:15.682748 tramp-get-connection-property (7) # remote-shell /bin/bash

But when I run the compilation command "echo ${BASH_VERSION}", it returns

And I notice there is log line like:
  38:15.720661 tramp-send-command (6) # cd /home/user/projects/foo/build/
&&  exec <<'6xxa3a8f7393fxxx' env
PS1\=/ssh\:remote_machine\:/home/user/projects/foo/build/\ \#\$\  TERMCAP\=
COLUMNS\=134 INSIDE_EMACS\=26.1\,compile /bin/sh
) </dev/tty

It is still using /bin/sh.

On Wed, Jul 17, 2019 at 2:12 PM Michael Albinus <address@hidden>

> Zhongwei Yao <address@hidden> writes:
> > Hi, Bruno,
> Hi,
> > By using " RemoteCommand sh -c '. my/python/virtualenv/bin/activate; bash
> > -l'", I think all command will run in bash, right? Am I missing
> something?
> After login on the remote host, Tramp calls /bin/sh. That's why bash is
> not active. This could be overwritten by the connection property
> "remote-shell", see the Tramp manual.
> > Thanks,
> > Zhongwei
> Best regards, Michael.

reply via email to

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