From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Tramp and BusyBox problem? Date: Thu, 19 Mar 2009 22:54:36 +0100 Message-ID: <87vdq5yy8z.fsf@gmx.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1237499729 21684 80.91.229.12 (19 Mar 2009 21:55:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Mar 2009 21:55:29 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Mats =?utf-8?Q?L=C3=B6fdahl?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 19 22:56:45 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LkQE2-0000Rr-PQ for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Mar 2009 22:56:31 +0100 Original-Received: from localhost ([127.0.0.1]:38983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkQCg-0001Zi-4E for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Mar 2009 17:55:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LkQCM-0001Zd-2m for help-gnu-emacs@gnu.org; Thu, 19 Mar 2009 17:54:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LkQCH-0001ZR-FW for help-gnu-emacs@gnu.org; Thu, 19 Mar 2009 17:54:45 -0400 Original-Received: from [199.232.76.173] (port=56929 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkQCH-0001ZO-AQ for help-gnu-emacs@gnu.org; Thu, 19 Mar 2009 17:54:41 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:55631) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LkQCG-0004Py-Nr for help-gnu-emacs@gnu.org; Thu, 19 Mar 2009 17:54:41 -0400 Original-Received: (qmail invoked by alias); 19 Mar 2009 21:54:39 -0000 Original-Received: from brln-4db92a18.pool.einsundeins.de (EHLO arthur.local) [77.185.42.24] by mail.gmx.net (mp067) with SMTP; 19 Mar 2009 22:54:39 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18zTB1yygwzpKKmyRhIyjCEReSfI7JWXmv4T4rH3e nf+FCwmALgijxe In-Reply-To: ("Mats =?utf-8?Q?L=C3=B6fdah?= =?utf-8?Q?l=22's?= message of "Thu, 19 Mar 2009 21:19:21 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.55 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63110 Archived-At: Mats L=C3=B6fdahl writes: > An error was echoed. I guess the info is in the debug buffer but here > it is from the *Messages* buffer as well: > > ----begin---- > ... > File error: `getconf PATH' returns with error > Tramp: `getconf PATH' not successful, using default value "/bin:/usr/bin". That's not a problem. Your Busybox does not support the "getconf" command; Tramp detects this, and uses (correcty, as I can see) default values. > Back to the badly formatted dired buffer: In addition to it looking > funny, completion to existing file names does not work. Neither does > clicking on the file names. It fails to open the file and an error is > echoed: "dired-get-file-for-visit: File no longer exists; type `g' to > update dired buffer" That's another problem. Let's look into the debug buffer: 21:03:39 tramp-send-command (6) # _echo/bin/ls -al /._echo Tramp= has detected that Busybox echoes commands, and makes a trick to mask the echo. The sent command is "/bin/ls -al /.". 21:03:39 tramp-check-for-regexp (5) # echo-mark found 21:03:39 tramp-wait-for-regexp (6) #=20 drwxr-xr-x 21 root root 4096 Mar 15 22:03 =1B[1;34m.=1B[0m drwxr-xr-x 21 root root 4096 Mar 15 22:03 =1B[1;34m..=1B[0m -rw-r--r-- 1 root root 3 Aug 18 2004 =1B[0;0m.mkcert.ser= ial=1B[0m And so on. Your "ls" command returns escape sequences, in order to colorize the output! Poor Tramp does not understand. See the Tramp manual, section "Frequently Asked Question", where the case of colorized "ls" output is discussed. Please suppress this in your ~/.profile on Busybox. You could use a check for $TERM in order to suppress it only when Tramp connects, as it is discussed for the zsh in that section. > Thanks for spending time on this! > > /Mats Best regards, Michael.