On Tue, 24 Sep 2019, Michael Albinus wrote:

Mark Geary <ge...@acm.org> writes:

I also realized that I needed to delete ~/emacs.d/tramp.
(Which, I suppose, is why Tramp had been using /usr/ccs/bin/bash.)

Maybe this led to problems. I see now the errors

--8<---------------cut here---------------start------------->8---
16:57:08.574453 tramp-file-name-handler (1) # Symbol’s value as variable is void: "Symbol's 
value as variable is void", "(tramp-inline-compress-start-size)"
16:57:08.574572 tramp-file-name-handler (1) # Symbol’s value as variable is void: "Symbol's 
value as variable is void", "(tramp-copy-size-limit)"
16:57:08.574640 tramp-file-name-handler (1) # Symbol’s value as variable is void: "Symbol's 
value as variable is void", "(tramp-histfile-override)"
16:57:08.574875 tramp-file-name-handler (1) # Symbol’s value as variable is void: "Symbol's 
value as variable is void", "(tramp-use-ssh-controlmaster-options)"
--8<---------------cut here---------------end--------------->8---

Instead of removing ~/emacs.d/tramp, you might call "M-x 
tramp-cleanup-all-connections".
This is safer.


Thanks. I see now the error

--8<---------------cut here---------------start------------->8---
16:57:15.722371 tramp-barf-unless-okay (1) # File error: ‘( (test -e /home/mag43/.profile || test -h 
/home/mag43/.profile) && (env QUOTING_STYLE=locale /usr/bin/stat -c '((/////%N/////) %h %u %g 
%X %Y %Z %s /////%A///// t %i -1)' /home/mag43/.profile | sed -e 's/"/\\"/g' -e 
's/\/\/\/\/\//"/g') || echo nil)’ returns with error
bash: null: command not found
--8<---------------cut here---------------end--------------->8---

The command is shorter than 250 chars, so it must be something
different. "stat" is still involved, I start to believe we shall simply
ban stat for remote Solaris.

The line you quote appears to be Emacs talking about a previous command it
issued to the shell. I think that previous command has

   " 2>/dev/null; echo tramp_exit_status $?"

appended to the end of the text you quote. The offending text ("null")
starts with the 258th character. That doesn't show us clearly where the
problem is, but I don't think it lets us rule out line length as a factor.

I`ve prepared another patch, which does it. Pls remove the first patch,
and install this instead. And run "M-x tramp-cleanup-all-connections"
before testing.

Thanks, the new patch works, however

+    ;; stat on Solaris is buggy.  We've got reports for "SunOS 5.10"
+    ;; and "SunOS 5.11" so far.

I think the actual problem is more subtle than that, but I don't have a
better solution at this time.

Mark
diff --git a/lisp/tramp-sh.el b/lisp/tramp-sh.el
index b7089207..08f05630 100644
--- a/lisp/tramp-sh.el
+++ b/lisp/tramp-sh.el
@@ -4207,6 +4207,13 @@ process to set up.  VEC specifies the connection."
       (tramp-cleanup-connection vec t t)
       (throw 'uname-changed (tramp-maybe-open-connection vec)))

+    ;; stat on Solaris is buggy.  We've got reports for "SunOS 5.10"
+    ;; and "SunOS 5.11" so far.
+    (when (string-match-p
+          (eval-when-compile (regexp-opt '("SunOS 5.10" "SunOS 5.11")))
+          (tramp-get-connection-property vec "uname" ""))
+      (tramp-set-connection-property vec "stat" nil))
+
     ;; Try to set up the coding system correctly.
     ;; CCC this can't be the right way to do it.  Hm.
     (tramp-message vec 5 "Determining coding system")
_______________________________________________
Tramp-devel mailing list
Tramp-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to