From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carsten Bormann Newsgroups: gmane.emacs.bugs Subject: bug#12148: 24.1.50; Tramp has problems with Solaris server (test -e) Date: Mon, 6 Aug 2012 17:23:26 +0200 Message-ID: <2318D1E1-B7AD-4160-A10F-04666C5385C2@tzi.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1344266659 5613 80.91.229.3 (6 Aug 2012 15:24:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2012 15:24:19 +0000 (UTC) To: 12148@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 06 17:24:18 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SyPAH-0005BR-Fb for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Aug 2012 17:24:17 +0200 Original-Received: from localhost ([::1]:46266 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyPAG-0001iA-QC for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Aug 2012 11:24:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyPAA-0001cl-IP for bug-gnu-emacs@gnu.org; Mon, 06 Aug 2012 11:24:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SyPA9-0005Xq-8m for bug-gnu-emacs@gnu.org; Mon, 06 Aug 2012 11:24:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56371) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyPA9-0005Xi-4e for bug-gnu-emacs@gnu.org; Mon, 06 Aug 2012 11:24:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SyPHl-0007dF-UU for bug-gnu-emacs@gnu.org; Mon, 06 Aug 2012 11:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carsten Bormann Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Aug 2012 15:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12148 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134426710829316 (code B ref -1); Mon, 06 Aug 2012 15:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Aug 2012 15:31:48 +0000 Original-Received: from localhost ([127.0.0.1]:37684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SyPHX-0007cn-L1 for submit@debbugs.gnu.org; Mon, 06 Aug 2012 11:31:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46907) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SyPHU-0007cf-U5 for submit@debbugs.gnu.org; Mon, 06 Aug 2012 11:31:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SyP9q-0005QQ-DH for submit@debbugs.gnu.org; Mon, 06 Aug 2012 11:23:51 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:55836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyP9q-0005QL-9O for submit@debbugs.gnu.org; Mon, 06 Aug 2012 11:23:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyP9o-0001Xu-Ke for bug-gnu-emacs@gnu.org; Mon, 06 Aug 2012 11:23:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SyP9m-0005Oi-Ro for bug-gnu-emacs@gnu.org; Mon, 06 Aug 2012 11:23:48 -0400 Original-Received: from mailhost.informatik.uni-bremen.de ([134.102.201.18]:35536 helo=informatik.uni-bremen.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyP9m-0005MB-Gz for bug-gnu-emacs@gnu.org; Mon, 06 Aug 2012 11:23:46 -0400 X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de Original-Received: from smtp-fb3.informatik.uni-bremen.de (smtp-fb3.informatik.uni-bremen.de [134.102.224.120]) by informatik.uni-bremen.de (8.14.3/8.14.3) with ESMTP id q76FNSW1021149 for ; Mon, 6 Aug 2012 17:23:28 +0200 (CEST) Original-Received: from [192.168.217.105] (p54892F18.dip.t-dialin.net [84.137.47.24]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp-fb3.informatik.uni-bremen.de (Postfix) with ESMTPSA id 6F816AA0; Mon, 6 Aug 2012 17:23:28 +0200 (CEST) X-Mailer: Apple Mail (2.1485) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62868 Archived-At: 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=3Dx86_64-apple-darwin' '--build=3Di686-apple-darwin' '--with-ns' 'build_alias=3Di686-apple-darwin' 'host_alias=3Dx86_64-apple-darwin' 'CC=3Dgcc = -mmacosx-version-min=3D10.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 : =20 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=3D/var/folders/hy/4kd7dc593jn5wbqln6_hj_940000gn/T/tramp.28882= -39.%r@%h:%p -o ControlMaster=3Dyes -e none a' Tramp: Waiting for prompts from remote shell Tramp: Sending command `exec ssh -o = ControlPath=3D/var/folders/hy/4kd7dc593jn5wbqln6_hj_940000gn/T/tramp.28882= -39.%r@%h:%p -o ControlMaster=3Dyes -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)