GNU bug report logs -
#14808
24.3; Tramp hangs on unmatched prompt pattern
Previous Next
Reported by: Chris Thompson <teaforthecat <at> gmail.com>
Date: Sat, 6 Jul 2013 22:14:01 UTC
Severity: normal
Found in version 24.3
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
Message #19 received at 14808-done <at> debbugs.gnu.org (full text, mbox):
Chris Thompson <teaforthecat <at> gmail.com> writes:
Hi Chris,
> I successfully replicated your work. I see the message in the
> minibuffer:
[...]
That's the intention of my change. You shall get more information where
to look for.
> The value of tramp-shell-prompt-pattern:
> "\\(?:^\\|\n \\)[^]#$%>\n]*#?[]#$%>] *\\(\\[[0-9;]*[a-zA-Z] *\\)*"
>
> When I add a colon to the list of ending characters in that regex,
> which would be #:$%>, then opening the file with sudo works
> beautifully. (because of the PS1 value which is set in
> .../root/.bashrc)
We have kept out the trailing colon in `tramp-shell-prompt-pattern',
because often you get information or requests during login with such a
trailing colon, which should not be recognized as prompt. Like this:
Password:
So from my pov, this bug is resolved. I recommend you to use a prompt
w/o a trailing colon. Or you modify `tramp-shell-prompt-pattern', as you
have done.
> Thanks,
> Chris
Best regards, Michael.
This bug report was last modified 12 years and 2 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.