tramp-devel
[Top][All Lists]
Advanced

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

Possible bug in lisp/tramp.el rev. 2.240


From: Francis Litterio
Subject: Possible bug in lisp/tramp.el rev. 2.240
Date: Mon, 07 Oct 2002 14:45:06 -0400
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-msvc-nt5.0.2195)

Revision 2.240 of lisp/tramp.el contains the following code at line
4271:

      (tramp-send-command
       multi-method method user host
       (concat "PS1='$ ' exec " shell)) ;
      (unless (tramp-wait-for-regexp
               (get-buffer-process (current-buffer))
               60 (format "\\(\\(%s\\)\\|\\(%s\\)\\)\\'"
                          tramp-shell-prompt-pattern shell-prompt-pattern))
        (pop-to-buffer (buffer-name))
        (error "Couldn't find remote `%s' prompt." shell))

Shouldn't it be waiting to see the specified shell prompt ('$ ') instead
of the user-configured prompt specified by tramp-shell-prompt-pattern or
shell-prompt-pattern?  Maybe the above code should be:

      (tramp-send-command
       multi-method method user host
       (concat "PS1='$ ' exec " shell)) ;
      (unless (tramp-wait-for-regexp
               (get-buffer-process (current-buffer))
               60 "\\$ \\'")
        (pop-to-buffer (buffer-name))
        (error "Couldn't find remote `%s' prompt." shell))

This also occurs in the call to tramp-wait-for-regexp at line 4954.
--
Francis Litterio
address@hidden
http://world.std.com/~franl/
GPG and PGP public keys available on keyservers.





reply via email to

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