all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carsten Bormann <cabo@tzi.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 12148@debbugs.gnu.org
Subject: bug#12148: 24.1.50; Tramp has problems with Solaris server (test -e)
Date: Tue, 7 Aug 2012 18:23:58 +0200	[thread overview]
Message-ID: <5334FB1F-2455-4513-9B42-4DB7175FD71E@tzi.org> (raw)
In-Reply-To: <87ehnjaxvb.fsf@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 1423 bytes --]


On Aug 7, 2012, at 10:51, Michael Albinus <michael.albinus@gmx.de> wrote:

> Carsten Bormann <cabo@tzi.org> writes:
> 
>> This appears to get circumvented correctly once, but the .emacs.d/tramp
>> written out from the first emacs says:
>> 
>>  ("file-exists" "test -e")
>> 
>> which is clearly wrong.
>> So the next incarnation of emacs will no longer work correcly with that
>> Solaris server.
> 
> Hmm. In `tramp-find-file-exists-command', it is correctly tested for
> "test -e", "/bin/test -e" aso. But the cache seems to get the wrong value.
> 
> I would need to analyze the cache operations. Would you, please, apply
> "M-x tramp-cleanup-all-connections" (this also removes cache settings),
> set `tramp-verbose' to 9, and rerun the test? The resulting debug buffer
> shall tell us more.

Interesting.  With tramp-cleanup-all-connections I didn't need the two-step process to trigger the bug.
Again, the problem is that test -e suppresses the rest of the command line in /bin/sh on Solaris, so the first "test -e" fails right away, but is somehow recovered using another attempt that uses test -d. The attempt to find-file (open) .bash_history then completely fails on what seems to be the same kind of "test -e" (hmm, why didn't it do that in my previous tests before I wrote the tramp file).

resulting tramp file as well as debug buffer (slightly sanitized) attached.

Grüße, Carsten


[-- Attachment #2: tramp --]
[-- Type: application/octet-stream, Size: 665 bytes --]

;; -*- emacs-lisp -*- <12/08/06 17:23:35 /Users/cabo/.emacs.d/tramp>
;; Tramp connection history.  Don't change this file.
;; You can delete it, forcing Tramp to reapply the checks.

((["scpc" nil "a" nil nil]
  ("uname" "SunOS 5.11")
  ("test" "test")
  ("remote-path"
   ("/usr/xpg4/bin" "/usr/ccs/bin" "/usr/bin" "/bin" "/usr/sbin" "/usr/local/bin"))
  ("busybox" nil)
  ("remote-shell" "/usr/bin/bash")
  ("~" "/users/home/cabo")
  ("file-exists" "test -e")
  ("perl-file-spec" t)
  ("perl-cwd-realpath" t)
  ("perl" "\\perl")
  ("ls" "/usr/xpg4/bin/ls")
  ("ls-dired" nil)
  ("stat" nil)
  ("id" "/usr/xpg4/bin/id")
  ("gid-integer" 1003)
  ("readlink" nil)))

[-- Attachment #3: debug-tramp-scpc-a --]
[-- Type: application/octet-stream, Size: 68770 bytes --]

  reply	other threads:[~2012-08-07 16:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-06 15:23 bug#12148: 24.1.50; Tramp has problems with Solaris server (test -e) Carsten Bormann
2012-08-07  8:51 ` Michael Albinus
2012-08-07 16:23   ` Carsten Bormann [this message]
2012-08-08  6:47     ` Michael Albinus
2012-08-08  7:35       ` Carsten Bormann
2012-08-08  7:51         ` Michael Albinus
2012-08-08 13:45           ` Michael Albinus

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=5334FB1F-2455-4513-9B42-4DB7175FD71E@tzi.org \
    --to=cabo@tzi.org \
    --cc=12148@debbugs.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.