On Sat, 26 Aug 2017, Michael Albinus wrote:
Mark Geary <[email protected]> writes:
I can see if the sysadmin is willing, though he's on vacation now.
If he's willing, you might convince him to install Emacs 25.2.
He was not willing. ("We install whatever the OS vendor supplies.")
But since we no longer have quotas turned on for our home directories,
I installed it myself. My problems connecting to this FreeBSD machine
went away.
Tramp doesn't trust (remote) login shells to be POSIX compatible. So it
uses /bin/sh remotely.
Which, in practice, isn't always POSIX compatible, either.
Once I got the Mac-->BSD and Linux-->BSD connections working I tried
connecting from the Linux box to a Solaris 10 box. I've attached an
excerpt from the debug output.
I was confused at first by the error message regarding "invalid file
‘~/.tramp_history’".
It turns out that /bin/sh on this machine is /bin/jsh, which doesn't
understand ~ expansion. After adding
(add-to-list 'tramp-connection-properties
(list (regexp-quote "sfmg10:")
"remote-shell" "/usr/bin/bash"))
to my .emacs, it works. So my problems with Tramp are, essentially,
solved. What still puzzles me, though, is that
(add-to-list 'tramp-connection-properties
(list (regexp-quote "\(scp\|ssh\):sfmg1[0-4]:")
"remote-shell" "/usr/bin/bash"))
doesn't work.
I gues there is another thing which isn't exactly a problem, but is an
annoyance. When I'm editing a file on the FreeBSD machine. I fequently
get messages [falsely] warning me that the file has changed on the
remote host. This happened with both Emacs 23.1.1 and now with 25.2. I
don't think I see this when connecting to any other machine. How does
Tramp check this, and do you have any ideas why it might be reporting
false positives?
Mark Geary
--
Fifty-four Forty or Fight!10:44:07.202828 tramp-maybe-open-connection (3) # Found remote shell prompt on
‘sfmg10’
10:44:07.202965 tramp-open-shell (5) # Opening remote shell ‘/bin/sh’...
10:44:07.203116 tramp-send-command (6) # exec env ENV=''
HISTFILE=~/.tramp_history PROMPT_COMMAND='' PS1=\#\$\ PS2='' PS3='' /bin/sh
10:44:07.213994 tramp-wait-for-regexp (6) #
#$
10:44:07.214266 tramp-send-command (6) # (cd ~/) 2>/dev/null; echo
tramp_exit_status $?
10:44:07.221967 tramp-wait-for-regexp (6) #
tramp_exit_status 1
#$
10:44:07.222766 tramp-barf-unless-okay (1) # File error:
‘tramp-histfile-override’ uses invalid file ‘~/.tramp_history’
10:44:07.222877 tramp-open-shell (5) # Opening remote shell ‘/bin/sh’...failed
10:44:07.223150 tramp-maybe-open-connection (3) # Opening connection for sfmg10
using scp...failed
10:44:07.223376 tramp-process-sentinel (5) # Sentinel called: ‘#<process
*tramp/scp sfmg10*>’ ‘killed
_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel