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 17:39:33 +0100	[thread overview]
Message-ID: <87wsal79h6.fsf@gmx.de> (raw)
In-Reply-To: <gpp8a5$qh5$1@news.albasani.net> ("Mats Löfdahl"'s message of "Tue\, 17 Mar 2009 23\:30\:27 +0100")

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

Mats Löfdahl <mats_lofdahl@yahoo.se> writes:

> I then started a fresh emacs and did the double attempt to connect as
> root. To me it looked just like last time but I've uploaded the debug
> buffer anyway: http://www.solarphysics.kva.se/~mats/debug3.txt

Things progress. Still an error, but at another place.

Tramp has two problems with your Busybox: it echoes the commands, and it
is slow. This case, when Tramp has send "PS1='$ '", only the "PS1='$"
substring was visible in the output buffer, and Tramp thought it is a
shell prompt. Then it has sent the next command, and it began to be
confused by the not read characters.

So we must convince Tramp there isn't a shell prompt, even if the
command itself is echoed, and even if only a substring of the whole
command is visible.

The appended patch tries to catch this situation. Could you, please,
test?

Thanks, and best regards, Michael.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1155 bytes --]

*** /tmp/tramp.el.~2.678.~	Thu Mar 19 17:35:00 2009
--- /tmp/tramp.el	Thu Mar 19 17:35:00 2009
***************
*** 5669,5675 ****
  	  (let ((tramp-end-of-output "$ "))
  	    (tramp-send-command
  	     vec
! 	     (format "PROMPT_COMMAND='' PS1='$ ' PS2='' PS3='' exec %s" shell)
  	     t))
  	  ;; Setting prompts.
  	  (tramp-message vec 5 "Setting remote shell prompt...")
--- 5669,5675 ----
  	  (let ((tramp-end-of-output "$ "))
  	    (tramp-send-command
  	     vec
! 	     (format "PROMPT_COMMAND='' PS1=\\$\\  PS2='' PS3='' exec %s" shell)
  	     t))
  	  ;; Setting prompts.
  	  (tramp-message vec 5 "Setting remote shell prompt...")
***************
*** 5951,5957 ****
      (tramp-send-command
       vec
       (format
!       "exec env ENV='' PROMPT_COMMAND='' PS1='$ ' PS2='' PS3='' %s"
        (tramp-get-method-parameter
         (tramp-file-name-method vec) 'tramp-remote-sh))
       t)
--- 5951,5957 ----
      (tramp-send-command
       vec
       (format
!       "exec env ENV='' PROMPT_COMMAND='' PS1=\\$\\  PS2='' PS3='' %s"
        (tramp-get-method-parameter
         (tramp-file-name-method vec) 'tramp-remote-sh))
       t)

  reply	other threads:[~2009-03-19 16:39 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 [this message]
     [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

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=87wsal79h6.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.