help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Question about tramp and remote environment.


From: Eli Zaretskii
Subject: Re: Question about tramp and remote environment.
Date: Sat, 23 Mar 2019 08:54:11 +0200

> Date: Sat, 23 Mar 2019 02:10:12 +0100
> From: Ergus <address@hidden>
> 
> M-! module load xyz
> 
> and then the remote path will be changed. 
> 
> But when I try this, the remote environment is not modified. If I print
> the paths they are always the same.
> 
> If I try something simpler like:
> 
> M-! export var=1
> M-! echo $var
> 
> It doesn't work either. So is this a design choice?

Each time you invoke M-! it runs a new instance of the shell, so
setting you have done there are not propagated to the next
invocation.  If you want them to stick around, start a sub-shell with
"M-x shell", then do all the changes there.



reply via email to

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