From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#11065: 24.0.94; Problem with tramp & plink Date: Fri, 23 Mar 2012 08:48:39 +0100 Message-ID: <871uojkbag.fsf@gmx.de> References: <87zkb8vbut.fsf@gmx.de> <87ehsko22x.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1332488961 29453 80.91.229.3 (23 Mar 2012 07:49:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2012 07:49:21 +0000 (UTC) Cc: 11065@debbugs.gnu.org To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 23 08:49:20 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SAzFN-0004nN-9J for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Mar 2012 08:49:17 +0100 Original-Received: from localhost ([::1]:57435 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAzFM-0006Zv-No for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Mar 2012 03:49:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAzFJ-0006Zg-Rh for bug-gnu-emacs@gnu.org; Fri, 23 Mar 2012 03:49:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SAzFH-0007Vi-B5 for bug-gnu-emacs@gnu.org; Fri, 23 Mar 2012 03:49:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55463) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAzFH-0007VA-7Z for bug-gnu-emacs@gnu.org; Fri, 23 Mar 2012 03:49:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SAzj7-0000cP-It for bug-gnu-emacs@gnu.org; Fri, 23 Mar 2012 04:20:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Mar 2012 08:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11065 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 11065-submit@debbugs.gnu.org id=B11065.13324907972363 (code B ref 11065); Fri, 23 Mar 2012 08:20:01 +0000 Original-Received: (at 11065) by debbugs.gnu.org; 23 Mar 2012 08:19:57 +0000 Original-Received: from localhost ([127.0.0.1]:34062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SAzj2-0000c4-OA for submit@debbugs.gnu.org; Fri, 23 Mar 2012 04:19:57 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:39746) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SAzii-0000bd-8S for 11065@debbugs.gnu.org; Fri, 23 Mar 2012 04:19:56 -0400 Original-Received: (qmail invoked by alias); 23 Mar 2012 07:48:43 -0000 Original-Received: from p57BB9380.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.147.128] by mail.gmx.net (mp001) with SMTP; 23 Mar 2012 08:48:43 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/mXvZntkjmqvOyYEPykTeqIM0/wikZ0O1DQwztjz caI8mBnM5acoNr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:57995 Archived-At: Lennart Borgman writes: Hi Lennart, > Just a thought: Is not plink the "standard" way to communicate this > way with Emacs on w32? The problem is not related to plink. It can happen for every Tramp connection using a remote shell, and the remote shell's prompt is composed by "[]". > Should perhaps this solution be documented somewhere? Customizing `tramp-shell-prompt-pattern' is documented in the Tramp manual. > (Or even implemented as a choice on w32?) `tramp-shell-prompt-pattern' is derived from `shell-prompt-pattern'. Both do not support "[]" style prompts, because shell script fragments like if [ -n "$FOO" ] would be treated as prompt. OTOH, Tramp redefines the prompt immediately after connection, so it might be safe to add this prompt style (as I have recommended to Dani). I will check the Tramp sources, whether there are other potential conflicts. If there is no obvious problem, I'll extend `tramp-shell-prompt-pattern' in the trunk such a way, once it has been reopened for 24.2. Let's see, whether somebody rants about. Best regards, Michael.