GNU bug report logs - #23914
24.5; tramp-get-remote-path fails with some shells if tramp-own-remote-path is used

Previous Next

Package: emacs;

Reported by: Joel Ray Holveck <joelh <at> piquan.org>

Date: Fri, 8 Jul 2016 08:58:02 UTC

Severity: normal

Found in version 24.5

Fixed in version 26.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 23914 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: 23914 <at> debbugs.gnu.org,  Joel Ray Holveck <joelh <at> piquan.org>
Subject: Re: bug#23914: 24.5;
 tramp-get-remote-path fails with some shells if tramp-own-remote-path
 is used
Date: Sat, 20 Aug 2016 12:05:06 +0200
Michael Albinus <michael.albinus <at> gmx.de> writes:

> I have added a note to the Tramp manual about this restriction (the
> remote shell must support -l in order to use tramp-own-remote-path). I
> have no idea what could be done else, so I propose to close this bug.

Since commit 5126b7d6c201f95fde0d817a64620d152c1c15e1 in Emacs master,
Tramp supports the usage of the ENV environment variable. This could be
used as alternative in cases the remote shell does not support the "-l"
argument.

The Tramp manual says:

--8<---------------cut here---------------start------------->8---
Setting the ‘ENV’ environment variable instructs some shells to
read an initialization file.  Per default, TRAMP has disabled this.
You could overwrite this behaviour by evaluating

     (let ((process-environment tramp-remote-process-environment))
       (setenv "ENV" "$HOME/.profile")
       (setq tramp-remote-process-environment process-environment))
--8<---------------cut here---------------end--------------->8---

Could you please check whether this works for you, instead of using
`tramp-own-remote-path'?

Best regards, Michael.




This bug report was last modified 8 years and 223 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.