all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: "Mats Löfdahl" <mats_lofdahl@yahoo.se>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Tramp and BusyBox problem?
Date: Thu, 19 Mar 2009 22:54:36 +0100	[thread overview]
Message-ID: <87vdq5yy8z.fsf@gmx.de> (raw)
In-Reply-To: <gpu9cc$qvg$1@news.albasani.net> ("Mats Löfdahl"'s message of "Thu, 19 Mar 2009 21:19:21 +0100")

Mats Löfdahl <mats_lofdahl@yahoo.se> 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\b\b\b\b\b/bin/ls -al /._echo\b\b\b\b\b

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) # 

drwxr-xr-x   21 root     root         4096 Mar 15 22:03 ^[[1;34m.^[[0m
drwxr-xr-x   21 root     root         4096 Mar 15 22:03 ^[[1;34m..^[[0m
-rw-r--r--    1 root     root            3 Aug 18  2004 ^[[0;0m.mkcert.serial^[[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.




      reply	other threads:[~2009-03-19 21:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-02 23:40 Tramp and BusyBox problem? Mats Löfdahl
2009-03-03  8:12 ` Mats Löfdahl
2009-03-03 16:29   ` Michael Albinus
     [not found]   ` <mailman.2277.1236097624.31690.help-gnu-emacs@gnu.org>
2009-03-04 21:26     ` Mats Löfdahl
2009-03-08 11:05       ` Michael Albinus
     [not found]       ` <mailman.2691.1236510346.31690.help-gnu-emacs@gnu.org>
2009-03-08 16:47         ` Mats Löfdahl
2009-03-15 16:28           ` Michael Albinus
     [not found]           ` <mailman.3243.1237134515.31690.help-gnu-emacs@gnu.org>
2009-03-15 18:01             ` Mats Löfdahl
2009-03-15 19:23               ` Michael Albinus
     [not found]               ` <mailman.3258.1237145041.31690.help-gnu-emacs@gnu.org>
2009-03-15 21:23                 ` Mats Löfdahl
2009-03-17 20:37                   ` Michael Albinus
     [not found]                   ` <mailman.3431.1237322291.31690.help-gnu-emacs@gnu.org>
2009-03-17 22:30                     ` Mats Löfdahl
2009-03-19 16:39                       ` Michael Albinus
     [not found]                       ` <mailman.3583.1237480793.31690.help-gnu-emacs@gnu.org>
2009-03-19 20:19                         ` Mats Löfdahl
2009-03-19 21:54                           ` Michael Albinus [this message]

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=87vdq5yy8z.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mats_lofdahl@yahoo.se \
    /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.