tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tramp hangs setting up remote shell prompt.


From: David Keegan
Subject: Re: Tramp hangs setting up remote shell prompt.
Date: Thu, 15 Jul 2010 22:42:24 +0100

Michael,

> trailing space); I don't know whether it was stripped during mail
> transfer, or not.

The buffer contents were messed up during mail transfer.
There was a trailing space after each occurrence of "#$".

I've attached the segment of the buffer of interest tarred up
so you can see exactly what's there.

Please let me know if you still want me to try your patch.

Regards,
David.
-- 
[David Keegan address@hidden 353 1 2988743]
[56 Roebuck Downs Dublin 14 IRELAND]

Attachment: tramp-buffer.tar
Description: Tarred tramp-buffer extract.

Michael Albinus writes:
 > David Keegan <address@hidden> writes:
 > 
 > > Michael,
 > 
 > Hi David,
 > 
 > > Please refer below to tramp buffer contents after hang on
 > > attempted connection.
 > 
 > --8<---------------cut here---------------start------------->8---
 > 08:26:23.754168 tramp-accept-process-output (10) #
 > exec env ENV='' PROMPT_COMMAND='' PS1=\#\$\  PS2=
 > < exec env ENV='' PROMPT_COMMAND='' PS1=\#\$\  PS2='                         
 > ' PS3='' /bin/sh
 > 
 > 
 > 
 > #$
 > #$
 > 08:26:23.754489 tramp-get-connection-property (7) # check-remote-echo nil
 > 08:26:23.754764 tramp-get-connection-property (7) # check-remote-echo nil
 > --8<---------------cut here---------------end--------------->8---
 > 
 > That looks very obscure. But Tramp should have recognized the prompt,
 > which is "#$ " in this situation. The trace shows "#$" (missing the
 > trailing space); I don't know whether it was stripped during mail
 > transfer, or not.
 > 
 > So let's try a prompt without trailing space. Could you, please, apply
 > the following patch:
 > 
 > --8<---------------cut here---------------start------------->8---
 > *** /home/albinus/src/tramp/lisp/tramp.el.~1~        2010-07-13 
 > 17:43:56.000000000 +0200
 > --- /home/albinus/src/tramp/lisp/tramp.el    2010-07-15 15:55:25.069519000 
 > +0200
 > ***************
 > *** 319,325 ****
 >   The '$' character at the end is quoted; the string cannot be
 >   detected as prompt when being sent on echoing hosts, therefore.")
 >   
 > ! (defconst tramp-initial-end-of-output "#$ "
 >     "Prompt when establishing a connection.")
 >   
 >   (defvar tramp-methods
 > --- 319,325 ----
 >   The '$' character at the end is quoted; the string cannot be
 >   detected as prompt when being sent on echoing hosts, therefore.")
 >   
 > ! (defconst tramp-initial-end-of-output "#$"
 >     "Prompt when establishing a connection.")
 >   
 >   (defvar tramp-methods
 > --8<---------------cut here---------------end--------------->8---
 > 
 > After that you shall close Emacs, and restart it again, because a
 > defconst does not change its value during evaluation when it was
 > declared already.
 > 
 > Best regards, Michael.
 > 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]