[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: confused about PATH seeings in my shell
From: |
Michael Albinus |
Subject: |
Re: confused about PATH seeings in my shell |
Date: |
Tue, 10 Jan 2017 09:32:06 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
"Ben Hyde" <address@hidden> writes:
Hi Ben,
> This is kind of embarrassing, but here goes.
>
> Consider to scenarios:
> In emacs
> A.1) M-x find-file /address@hidden
> A.2) M-x shell
> A.3) echo $PATH
> v.s.
> In a terminal session
> B.1) ssh address@hidden
> B.2) echo $PATH
>
> The PATH is different. Why? For example, is one a login shell and the
> other isn’t?
> Possibly with the help of a /bin/sh usage around A.1
>
> I’m confused
Per default, Tramp does not offer the PATH settings from your login
shell. If you want them, add `tramp-own-remote-path' to
`tramp-remote-path'. See (info "(tramp) Remote programs")
Best regards, Michael.