unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Can't Stop Tramp from invoking my login fish shell
@ 2017-01-07 14:00 ded
  2017-01-08 11:11 ` Michael Albinus
  2017-01-09 11:17 ` ded
  0 siblings, 2 replies; 4+ messages in thread
From: ded @ 2017-01-07 14:00 UTC (permalink / raw)
  To: help-gnu-emacs

All,

I have started using the fish shell, which I like for interactive use.  I have set it to be my default shell with chsh.

However, it does not play well with TRAMP, which uses the 'COMMAND && COMMAND' syntax in several places.   When I open a file in a remote dir over TRAMP, I get and error complaining about fish not implementing the && construct.

I believe TRAMP always uses /bin/sh as the shell on the remote side, so I'm guessing this is invoking it on the local side.

The error message pops up in a *temp* buffer, which goes away when I type anything in it, but it says something like this:

Unsupported use of && ...
fish: scp -p -q -r ... && echo tramp_exit_status 0 || echo tramp_exit_status 1

I have tried setting explicit-shell-file-name to "/bin/bash" and setting SHELL environment variable to "/bin/bash" with setenv when tramp is loaded.

None of this has stopped this message.

Any idea what is happening?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can't Stop Tramp from invoking my login fish shell
  2017-01-07 14:00 Can't Stop Tramp from invoking my login fish shell ded
@ 2017-01-08 11:11 ` Michael Albinus
  2017-01-08 12:02   ` Doherty, Daniel
  2017-01-09 11:17 ` ded
  1 sibling, 1 reply; 4+ messages in thread
From: Michael Albinus @ 2017-01-08 11:11 UTC (permalink / raw)
  To: ded; +Cc: help-gnu-emacs

ded@ddoherty.net writes:

> All,

Hi,

> The error message pops up in a *temp* buffer, which goes away when I type anything in it, but it says something like this:
>
> Unsupported use of && ...
> fish: scp -p -q -r ... && echo tramp_exit_status 0 || echo tramp_exit_status 1

This construct isn't used anymore since Tramp 2.3.0. You could switch
either to the development version of Emacs 26, or install the recent
Tramp 2.3.1.

> I have tried setting explicit-shell-file-name to "/bin/bash" and
> setting SHELL environment variable to "/bin/bash" with setenv when
> tramp is loaded.

Internally, Tramp calls `start-process-shell-command'. Binding
`shell-file-name' to "/bin/bash" might help (not tested).

Best regards, Michael.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can't Stop Tramp from invoking my login fish shell
  2017-01-08 11:11 ` Michael Albinus
@ 2017-01-08 12:02   ` Doherty, Daniel
  0 siblings, 0 replies; 4+ messages in thread
From: Doherty, Daniel @ 2017-01-08 12:02 UTC (permalink / raw)
  To: Michael Albinus; +Cc: help-gnu-emacs

Michael,

You nailed it!  I had seen suggestions to set explicit-shell-file-name, but
not shell-file-name.

Problem went away after setting this in my init.el.  Many thanks.



====================================================
Daniel E. Doherty
Law Offices of Daniel E. Doherty
7300 W. 110th Street, Suite 930
Overland Park, KS 66210
913.338.7182 (Phone)
913.338.7164 (FAX)
ded-law@ddoherty.net


On Sun, Jan 8, 2017 at 5:11 AM, Michael Albinus <michael.albinus@gmx.de>
wrote:

> ded@ddoherty.net writes:
>
> > All,
>
> Hi,
>
> > The error message pops up in a *temp* buffer, which goes away when I
> type anything in it, but it says something like this:
> >
> > Unsupported use of && ...
> > fish: scp -p -q -r ... && echo tramp_exit_status 0 || echo
> tramp_exit_status 1
>
> This construct isn't used anymore since Tramp 2.3.0. You could switch
> either to the development version of Emacs 26, or install the recent
> Tramp 2.3.1.
>
> > I have tried setting explicit-shell-file-name to "/bin/bash" and
> > setting SHELL environment variable to "/bin/bash" with setenv when
> > tramp is loaded.
>
> Internally, Tramp calls `start-process-shell-command'. Binding
> `shell-file-name' to "/bin/bash" might help (not tested).
>
> Best regards, Michael.
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can't Stop Tramp from invoking my login fish shell
  2017-01-07 14:00 Can't Stop Tramp from invoking my login fish shell ded
  2017-01-08 11:11 ` Michael Albinus
@ 2017-01-09 11:17 ` ded
  1 sibling, 0 replies; 4+ messages in thread
From: ded @ 2017-01-09 11:17 UTC (permalink / raw)
  To: help-gnu-emacs

I received an answer to this via email.  Since I'm not sure the person who sent it wants his name posted, I'll refrain.  But it turns out that the answer is setting the variable shell-file-name (not explicit-shell-file-name as I was doing and as I see posted elsewhere as a solution) to "/bin/bash":

(setq shell-file-name "/bin/bash")

This worked and kept fish from getting invoked by tramp.

Thanks again to he-who-shall-no-be-named for the answer.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-09 11:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-07 14:00 Can't Stop Tramp from invoking my login fish shell ded
2017-01-08 11:11 ` Michael Albinus
2017-01-08 12:02   ` Doherty, Daniel
2017-01-09 11:17 ` ded

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).