From: Carsten Bormann <cabo@tzi.org>
To: 12148@debbugs.gnu.org
Subject: bug#12148: 24.1.50; Tramp has problems with Solaris server (test -e)
Date: Mon, 6 Aug 2012 17:23:26 +0200 [thread overview]
Message-ID: <2318D1E1-B7AD-4160-A10F-04666C5385C2@tzi.org> (raw)
Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug. If you can, give a recipe
starting from `emacs -Q':
-- find a file via tramp on a Solaris 5.11 server (e.g., .bash_history)
-- exit emacs, so that a .emacs.d/tramp is written
-- find the file again
-> Error Couldn't find exit status of `test -e /users/home/cabo/.bash_history'
Solaris /bin/sh does not support test -e.
Worse, there is strange behavior when you use it:
bash$ /bin/sh
$ test -e foo ; echo $?
test: argument expected
$
So anything after the failing test does not get executed, which appears to destroy tramp's
exit status management.
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.
Workaround: kill emacs, edit ~/.emacs.d/tramp to say
("file-exists" "/bin/test -e")
and restart emacs.
(Because of the caching in .emacs.d/tramp and the behavior of writing out the tramp file during kill-emacs, this can be very confusing to debug. It took me a while to understand that the "works/doesn't work/works/doesn't work" behavior can only be explained by to the tramp file written out with bad information.)
In GNU Emacs 24.1.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2012-08-04 on bob.porkrind.org
Bzr revision: 109423 eggert@cs.ucla.edu-20120804005210-ydbx97z1govlzuik
Windowing system distributor `Apple', version 10.3.1187
Configured using:
`configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin'
'--with-ns' 'build_alias=i686-apple-darwin'
'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.5''
Important settings:
value of $LC_CTYPE: UTF-8
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: Dired by name
Minor modes in effect:
shell-dirtrack-mode: t
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
C-x C-f / a : <return> <return> <help-echo> <menu-bar>
<help-menu> <send-emacs-bug-report>
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Tramp: Opening connection for a using scpc...
Tramp: Sending command `exec ssh -o ControlPath=/var/folders/hy/4kd7dc593jn5wbqln6_hj_940000gn/T/tramp.28882-39.%r@%h:%p -o ControlMaster=yes -e none a'
Tramp: Waiting for prompts from remote shell
Tramp: Sending command `exec ssh -o ControlPath=/var/folders/hy/4kd7dc593jn5wbqln6_hj_940000gn/T/tramp.28882-39.%r@%h:%p -o ControlMaster=yes -e none a'
Tramp: Found remote shell prompt on `a'
Tramp: Opening connection for a using scpc...done
ls does not support --dired; see `dired-use-ls-dired' for more details.
byte-code: Couldn't find exit status of `test -e /users/home/cabo/.bash_history'
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message rfc822 mml easymenu mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils dired
tramp-cache tramp-sh tramp tramp-compat auth-source eieio byte-opt
bytecomp byte-compile cconv macroexp gnus-util mm-util mail-prsvr
password-cache tramp-loaddefs shell pcomplete comint ansi-color ring
format-spec advice help-fns advice-preload time-date tooltip ediff-hook
vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process ns multi-tty emacs)
next reply other threads:[~2012-08-06 15:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-06 15:23 Carsten Bormann [this message]
2012-08-07 8:51 ` bug#12148: 24.1.50; Tramp has problems with Solaris server (test -e) Michael Albinus
2012-08-07 16:23 ` Carsten Bormann
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=2318D1E1-B7AD-4160-A10F-04666C5385C2@tzi.org \
--to=cabo@tzi.org \
--cc=12148@debbugs.gnu.org \
/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.