Alexey Lebedeff <[email protected]> writes:

> Hi,

Hi Alexey,

> Running remote commands through eshell starts to work only after doing
> "cd" at least once. This is because some tramp setup happens in
> eshell-directory-change-hook.
>
> I'm not sure whether it should be fixed in tramp, by "(add-hook
> 'eshell-mode-hook 'tramp-eshell-directory-change)". Or in eshell, by
> teaching it to invoke eshell-directory-change-hook during
> initialization. And it's arguable whether eshell initialization can be
> considered as a directory change or not =)

I cannot reproduce it locally. Using a recent GNU Emacs 26.0.50.1, I run:

--8<---------------cut here---------------start------------->8---
# emacs -Q /sudo::

M-x eshell
/sudo:root@host:/root $ *pwd
/root
--8<---------------cut here---------------end--------------->8---

Could you, pls, show your use case? Starting with "emacs -Q" shall
avoid user specific side effects.

> Best,
> Alexey

Best regards, Michael.

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

Reply via email to