unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: 23914@debbugs.gnu.org,  Joel Ray Holveck <joelh@piquan.org>
Subject: 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	[thread overview]
Message-ID: <87zio7rc19.fsf@gmx.de> (raw)
In-Reply-To: <871t31bkgj.fsf@gmx.de> (Michael Albinus's message of "Sun, 10 Jul 2016 17:07:24 +0200")

Michael Albinus <michael.albinus@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.





  reply	other threads:[~2016-08-20 10:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-08  8:57 bug#23914: 24.5; tramp-get-remote-path fails with some shells if tramp-own-remote-path is used Joel Ray Holveck
2016-07-09 11:38 ` Michael Albinus
2016-07-09 12:23   ` Andreas Schwab
2016-07-10 15:07     ` Michael Albinus
2016-08-20 10:05       ` Michael Albinus [this message]
2016-08-28  8:20         ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zio7rc19.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=23914@debbugs.gnu.org \
    --cc=joelh@piquan.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).