all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ethan Brown <ethandbrown@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Tramp: how to set path to remote shell?
Date: Sun, 13 Mar 2011 13:29:17 -0700	[thread overview]
Message-ID: <AANLkTik3GDYaRFDRBKPyojLN34SzcVeuPa=xXNxRg5No@mail.gmail.com> (raw)
In-Reply-To: <87aagz1jxs.fsf@gmx.de>

On Sun, Mar 13, 2011 at 12:52 AM, Michael Albinus
<michael.albinus@gmx.de> wrote:
> Ethan <ethandbrown@gmail.com> writes:
>
> Hi,
>
>> The path to my shell on my local machine is /bin/bash.  When
>> attempting to bring up a shell on the remote machine I get the error:
>>
>> exec: /bin/bash: not found
>>
>> Process shell<2> exited abnormally with code 127
>>
>> It seems that tramp is using the path from my local machine as the
>> path on the remote machine.  The actual remote machine path for bash
>> is /usr/local/bin/bash.  Does anyone know which variable to set so
>> that tramp uses the correct path to bash on the remote machine?   I
>> did RTFM, but didn't find it.
>
> I suspect you have applied "M-x shell", haven't you? In this case,
> `shell-file-name' (your local login shell) is used for opening the
> shell. You can overwrite this by either setting environment variable
> $ESHELL, or by setting `explicit-shell-file-name'.
>
>> Thanks.
>
> Best regards, Michael.
>

Hi Michael--

Thanks so much for your quick response.  You are correct that I'm
running "M-x shell".  I suppose I'll need to write a bit of code to
toggle the shell path so I can reset it to the local path when I'm
running "M-x shell" locally instead of remotely.  Too bad there isn't
something to set that works only in the tramp context.

--Ethan



  reply	other threads:[~2011-03-13 20:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-12 20:37 Tramp: how to set path to remote shell? Ethan
2011-03-13  8:52 ` Michael Albinus
2011-03-13 20:29   ` Ethan Brown [this message]
2011-03-14  9:59     ` Michael Albinus
2011-03-14 14:24       ` Ethan Brown

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

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

  git send-email \
    --in-reply-to='AANLkTik3GDYaRFDRBKPyojLN34SzcVeuPa=xXNxRg5No@mail.gmail.com' \
    --to=ethandbrown@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael.albinus@gmx.de \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.