tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unwanted Interaction between Tramp and fish shell


From: Doherty, Daniel
Subject: Unwanted Interaction between Tramp and fish shell
Date: Sun, 8 Jan 2017 05:10:21 -0600

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

Here is what from the debug buffer with tramp-verbose set to 8:

===============================================================
04:11:05.974672 tramp-get-connection-property (7) # gateway nil
04:11:05.975179 tramp-action-out-of-band (3) # Process has died.
04:11:05.975481 tramp-get-connection-property (7) # process-buffer  *temp*
04:11:05.975689 tramp-process-actions (6) # 
Unsupported use of '&&'. In fish, please use 'COMMAND; and COMMAND'.
fish: scp -p -q -r micah\:/home/ded/Dropbox/WorkFiles/GibbonsLisa/Datawatch--Goldberg/ProfitCalc.org /tmp/tramp.14527SES.org && echo tramp_exit_status 0 || echo tramp_exit_status 1
                                                                                                                              ^

Process  *temp* exited abnormally with code 127
04:11:05.975874 tramp-get-connection-property (7) # process-buffer  *temp*
04:11:05.978488 tramp-process-actions (1) # File error: Tramp failed to connect.  If this happens repeatedly, try
    ‘M-x tramp-cleanup-this-connection’
Unsupported use of '&&'. In fish, please use 'COMMAND; and COMMAND'.
fish: scp -p -q -r micah\:/home/ded/Dropbox/WorkFiles/GibbonsLisa/Datawatch--Goldberg/ProfitCalc.org /tmp/tramp.14527SES.org && echo tramp_exit_status 0 || echo tramp_exit_status 1
                                                                                                                              ^

Process  *temp* exited abnormally with code 127
04:11:17.018558 tramp-process-actions (3) # Waiting for prompts from remote shell...failed
04:11:17.018933 tramp-set-connection-property (7) # process-name nil
04:11:17.019224 tramp-set-connection-property (7) # process-buffer nil
================================================================


Any idea what is happening? 


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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]